# Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. {{ if .Values.slot.blue.enabled }} --- apiVersion: apps/v1 kind: Deployment metadata: annotations: deployment.kubernetes.io/revision: "1" app.kubernetes.io/managed-by: "Helm" meta.helm.sh/release-name: "{{ .Values.helm.release }}" meta.helm.sh/release-namespace: "{{ .Values.helm.namespace }}" generation: 1 name: deployment-sap-commerce-blue-default namespace: "{{ .Values.kubernetes.namespace }}" spec: progressDeadlineSeconds: 600 replicas: 1 revisionHistoryLimit: 10 selector: matchLabels: aspect: default app: sap-commerce slot: blue strategy: rollingUpdate: maxSurge: 25% maxUnavailable: 25% type: RollingUpdate template: metadata: labels: aspect: default app: sap-commerce slot: blue production: "{{ $.Values.slot.blue.production }}" spec: automountServiceAccountToken: true containers: - image: "{{ $.Values.image.repository }}:{{ $.Values.slot.blue.release }}" args: [default] imagePullPolicy: Always name: sap-commerce-blue env: - name: TYPE_SYSTEM_NAME value: "{{ $.Values.slot.blue.typeSystem }}" - name: MY_POD_IP valueFrom: fieldRef: fieldPath: status.podIP ports: - containerPort: 8081 protocol: TCP resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File envFrom: - configMapRef: name: sap-commerce-configmap nodeSelector: node_type: "{{ .Values.kubernetes.sap.nodeLabelSelector }}" dnsPolicy: ClusterFirst enableServiceLinks: true restartPolicy: Always schedulerName: default-scheduler securityContext: {} serviceAccount: "{{ .Values.kubernetes.sap.serviceAccount }}" serviceAccountName: "{{ .Values.kubernetes.sap.serviceAccountName }}" shareProcessNamespace: false terminationGracePeriodSeconds: 30 {{- end }}