apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "dvirlabs-landing.fullname" . }} labels: app.kubernetes.io/name: {{ include "dvirlabs-landing.name" . }} helm.sh/chart: {{ include "dvirlabs-landing.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} spec: replicas: {{ .Values.replicaCount }} selector: matchLabels: app.kubernetes.io/name: {{ include "dvirlabs-landing.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} template: metadata: labels: app.kubernetes.io/name: {{ include "dvirlabs-landing.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} containers: - name: dvirlabs-landing image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: http containerPort: 80 protocol: TCP resources: {{- toYaml .Values.resources | nindent 12 }} volumeMounts: - name: html mountPath: /usr/share/nginx/html/index.html subPath: index.html volumes: - name: html configMap: name: {{ include "dvirlabs-landing.fullname" . }}