Files
phppgadmin-kubernetes/chart/templates/deployment.yaml
T
feedc0de f2fb39ca62
Test, publish phpPgAdmin image and chart / publish-image (push) Successful in 7s
Test, publish phpPgAdmin image and chart / validate (push) Successful in 2s
Test, publish phpPgAdmin image and chart / publish-chart (push) Successful in 6s
Add Argo CD Helm chart release
2026-10-19 08:43:30 +02:00

74 lines
2.0 KiB
YAML

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