{{- if .Values.landing.enabled }} apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "reuse.landingFullname" . }} labels: {{- include "reuse.labels" . | nindent 4 }} app.kubernetes.io/component: landing spec: replicas: 1 selector: matchLabels: {{- include "reuse.landingSelectorLabels" . | nindent 6 }} strategy: type: RollingUpdate rollingUpdate: maxSurge: 1 maxUnavailable: 0 template: metadata: labels: {{- include "reuse.landingSelectorLabels" . | nindent 8 }} spec: enableServiceLinks: false containers: - name: landing image: {{ include "reuse.landingImage" . | quote }} imagePullPolicy: {{ .Values.landing.image.pullPolicy }} ports: - name: http containerPort: {{ .Values.landing.service.targetPort }} protocol: TCP readinessProbe: httpGet: path: / port: http initialDelaySeconds: 3 periodSeconds: 10 timeoutSeconds: 3 failureThreshold: 3 livenessProbe: httpGet: path: / port: http initialDelaySeconds: 10 periodSeconds: 30 timeoutSeconds: 3 failureThreshold: 3 resources: {{- toYaml .Values.landing.resources | nindent 12 }} volumeMounts: - name: landing-page mountPath: /usr/share/nginx/html/index.html subPath: index.html readOnly: true volumes: - name: landing-page configMap: name: {{ include "reuse.landingFullname" . }} {{- end }}