apiVersion: apps/v1 kind: Deployment metadata: name: phppgadmin labels: app: phppgadmin app.kubernetes.io/name: phppgadmin app.kubernetes.io/instance: {{ .Release.Name }} spec: replicas: {{ .Values.replicaCount }} revisionHistoryLimit: 3 minReadySeconds: 5 progressDeadlineSeconds: 600 strategy: type: RollingUpdate rollingUpdate: maxUnavailable: 0 maxSurge: 1 selector: matchLabels: app: phppgadmin template: metadata: labels: app: phppgadmin app.kubernetes.io/name: phppgadmin app.kubernetes.io/instance: {{ .Release.Name }} annotations: checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} spec: automountServiceAccountToken: false terminationGracePeriodSeconds: 30 containers: - name: phppgadmin image: {{ printf "%s:%s" .Values.image.repository .Chart.AppVersion | quote }} imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: http containerPort: 80 protocol: TCP startupProbe: httpGet: path: /phppgadmin/ port: http periodSeconds: 2 timeoutSeconds: 2 failureThreshold: 60 readinessProbe: httpGet: path: /phppgadmin/ port: http periodSeconds: 5 timeoutSeconds: 3 failureThreshold: 2 livenessProbe: httpGet: path: /phppgadmin/ port: http periodSeconds: 15 timeoutSeconds: 3 failureThreshold: 3 {{- with .Values.resources }} resources: {{- toYaml . | nindent 12 }} {{- end }} volumeMounts: - name: phppgadmin-config mountPath: /etc/phppgadmin/config.inc.php subPath: config.inc.php volumes: - name: phppgadmin-config configMap: name: phppgadmin-config