apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "nginx-chart.fullname" . }} namespace: {{ .Values.namespace }} spec: replicas: {{ .Values.replicaCount }} selector: matchLabels: app: nginx template: metadata: labels: app: nginx spec: imagePullSecrets: - name: {{ .Values.imagePullSecrets }} containers: - name: nginx image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - containerPort: 80 envFrom: - secretRef: name: {{ .Values.secret.name }} volumeMounts: - name: nginx-config mountPath: /etc/nginx/conf.d/default.conf subPath: default.conf volumes: - name: nginx-config configMap: name: {{ .Values.configMap.name }}