{{- if (.Values.phpmyadmin.enabled | default true) }} apiVersion: apps/v1 kind: Deployment metadata: name: phpmyadmin namespace: mariadb-operator labels: app: phpmyadmin spec: progressDeadlineSeconds: 600 replicas: 1 revisionHistoryLimit: 10 selector: matchLabels: app: phpmyadmin strategy: rollingUpdate: maxSurge: 25% maxUnavailable: 25% type: RollingUpdate template: metadata: labels: app: phpmyadmin spec: containers: - env: - name: DATABASE_ENABLE_SSL value: "yes" - name: DATABASE_HOST value: "mariadb-repl-maxscale-internal" - name: DATABASE_PORT_NUMBER value: "3306" - name: PHPMYADMIN_ALLOW_NO_PASSWORD value: "false" image: "bitnamilegacy/phpmyadmin:5.2.2" imagePullPolicy: IfNotPresent livenessProbe: failureThreshold: 3 httpGet: path: / port: http scheme: HTTP periodSeconds: 10 successThreshold: 1 timeoutSeconds: 1 name: phpmyadmin ports: - containerPort: 8080 name: http protocol: TCP - containerPort: 8443 name: https protocol: TCP readinessProbe: failureThreshold: 3 httpGet: path: / port: http scheme: HTTP periodSeconds: 10 successThreshold: 1 timeoutSeconds: 1 volumeMounts: - mountPath: /docker-entrypoint-init.d/hosts-init-script.sh name: config subPath: hosts-init-script.sh ip: 127.0.0.1 restartPolicy: Always volumes: - configMap: defaultMode: 511 name: phpmyadmin-config optional: false name: config {{- end }}