apiVersion: apps/v1
kind: Deployment
metadata:
  name: cm
spec:
  selector:
    matchLabels:
      app: cm
  template:
    metadata:
      labels:
        app: cm
    spec:
      nodeSelector:
        kubernetes.io/os: windows
      containers:
      - name: sitecore-xm1-cm
        env:
        - name: Sitecore_ConnectionStrings_CMP.ServiceBusEntityPathIn
          valueFrom:
            secretKeyRef:
              name: sitecore-chub-connection-strings
              key: sitecore-cmp-service-bus-entity-path-in.txt
        - name: Sitecore_ConnectionStrings_CMP.ServiceBusSubscription
          valueFrom:
            secretKeyRef:
              name: sitecore-chub-connection-strings
              key: sitecore-cmp-service-bus-subscription.txt
        - name: Sitecore_ConnectionStrings_CMP.ServiceBusEntityPathOut
          valueFrom:
            secretKeyRef:
              name: sitecore-chub-connection-strings
              key: sitecore-cmp-service-bus-entity-path-out.txt
        - name: Sitecore_ConnectionStrings_CMP.ContentHub
          valueFrom:
            secretKeyRef:
              name: sitecore-chub-connection-strings
              key: sitecore-cmp-content-hub.txt
        - name: Sitecore_ConnectionStrings_DAM.ContentHub
          valueFrom:
            secretKeyRef:
              name: sitecore-chub-connection-strings
              key: sitecore-dam-content-hub.txt
        - name: Sitecore_ConnectionStrings_DAM.SearchPage
          valueFrom:
            secretKeyRef:
              name: sitecore-chub-connection-strings
              key: sitecore-dam-search-page.txt
        - name: Sitecore_ConnectionStrings_DAM.ExternalRedirectKey
          valueFrom:
            secretKeyRef:
              name: sitecore-chub-connection-strings
              key: sitecore-dam-external-redirect-key.txt