{ "apiVersion": "apps/v1", "kind": "Deployment", "metadata": { "annotations": { "deployment.kubernetes.io/revision": "1", "meta.helm.sh/release-name": "phpmyadmin", "meta.helm.sh/release-namespace": "default" }, "creationTimestamp": "2024-09-06T12:29:16Z", "generation": 1, "labels": { "app.kubernetes.io/instance": "phpmyadmin", "app.kubernetes.io/managed-by": "Helm", "app.kubernetes.io/name": "phpmyadmin", "app.kubernetes.io/version": "5.2.1", "helm.sh/chart": "phpmyadmin-17.0.4" }, "name": "phpmyadmin", "namespace": "default", "resourceVersion": "87308", "uid": "b8518be1-1dd0-45a1-80f3-ddb835a56a5d" }, "spec": { "progressDeadlineSeconds": 600, "replicas": 1, "revisionHistoryLimit": 10, "selector": { "matchLabels": { "app.kubernetes.io/instance": "phpmyadmin", "app.kubernetes.io/name": "phpmyadmin" } }, "strategy": { "rollingUpdate": { "maxSurge": "25%", "maxUnavailable": "25%" }, "type": "RollingUpdate" }, "template": { "metadata": { "creationTimestamp": null, "labels": { "app.kubernetes.io/instance": "phpmyadmin", "app.kubernetes.io/managed-by": "Helm", "app.kubernetes.io/name": "phpmyadmin", "app.kubernetes.io/version": "5.2.1", "helm.sh/chart": "phpmyadmin-17.0.4" } }, "spec": { "affinity": { "podAntiAffinity": { "preferredDuringSchedulingIgnoredDuringExecution": [ { "podAffinityTerm": { "labelSelector": { "matchLabels": { "app.kubernetes.io/instance": "phpmyadmin", "app.kubernetes.io/name": "phpmyadmin" } }, "topologyKey": "kubernetes.io/hostname" }, "weight": 1 } ] } }, "automountServiceAccountToken": false, "containers": [ { "env": [ { "name": "BITNAMI_DEBUG", "value": "false" }, { "name": "DATABASE_PORT_NUMBER", "value": "3306" }, { "name": "DATABASE_HOST" }, { "name": "PHPMYADMIN_ALLOW_NO_PASSWORD", "value": "true" }, { "name": "PHPMYADMIN_ALLOW_ARBITRARY_SERVER", "value": "true" }, { "name": "DATABASE_ENABLE_SSL", "value": "no" } ], "image": "docker.io/bitnami/phpmyadmin:5.2.1-debian-12-r36", "imagePullPolicy": "IfNotPresent", "livenessProbe": { "failureThreshold": 6, "initialDelaySeconds": 30, "periodSeconds": 10, "successThreshold": 1, "tcpSocket": { "port": "http" }, "timeoutSeconds": 30 }, "name": "phpmyadmin", "ports": [ { "containerPort": 8080, "name": "http", "protocol": "TCP" }, { "containerPort": 8443, "name": "https", "protocol": "TCP" } ], "readinessProbe": { "failureThreshold": 6, "httpGet": { "path": "/", "port": "http", "scheme": "HTTP" }, "initialDelaySeconds": 30, "periodSeconds": 10, "successThreshold": 1, "timeoutSeconds": 30 }, "resources": { "limits": { "cpu": "375m", "ephemeral-storage": "2Gi", "memory": "384Mi" }, "requests": { "cpu": "250m", "ephemeral-storage": "50Mi", "memory": "256Mi" } }, "securityContext": { "allowPrivilegeEscalation": false, "capabilities": { "drop": [ "ALL" ] }, "privileged": false, "readOnlyRootFilesystem": true, "runAsGroup": 1001, "runAsNonRoot": true, "runAsUser": 1001, "seccompProfile": { "type": "RuntimeDefault" } }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", "volumeMounts": [ { "mountPath": "/opt/bitnami/apache/conf", "name": "empty-dir", "subPath": "apache-conf-dir" }, { "mountPath": "/opt/bitnami/apache/logs", "name": "empty-dir", "subPath": "apache-logs-dir" }, { "mountPath": "/opt/bitnami/apache/var/run", "name": "empty-dir", "subPath": "apache-tmp-dir" }, { "mountPath": "/opt/bitnami/php/etc", "name": "empty-dir", "subPath": "php-conf-dir" }, { "mountPath": "/opt/bitnami/php/tmp", "name": "empty-dir", "subPath": "php-tmp-dir" }, { "mountPath": "/opt/bitnami/php/var", "name": "empty-dir", "subPath": "php-var-dir" }, { "mountPath": "/tmp", "name": "empty-dir", "subPath": "tmp-dir" }, { "mountPath": "/opt/bitnami/phpmyadmin", "name": "empty-dir", "subPath": "app-base-dir" } ] } ], "dnsPolicy": "ClusterFirst", "hostAliases": [ { "hostnames": [ "status.localhost" ], "ip": "127.0.0.1" } ], "initContainers": [ { "args": [ "-ec", "#!/bin/bash\n\n. /opt/bitnami/scripts/liblog.sh\n. /opt/bitnami/scripts/libfs.sh\n\ninfo \"Copying base dir to empty dir\"\n# In order to not break the application functionality (such as upgrades or plugins) we need\n# to make the base directory writable, so we need to copy it to an empty dir volume\ncp -r --preserve=mode /opt/bitnami/phpmyadmin /emptydir/app-base-dir\n\ninfo \"Copying symlinks to stdout/stderr\"\n# We copy the logs folder because it has symlinks to stdout and stderr\nif ! is_dir_empty /opt/bitnami/apache/logs; then\n cp -r /opt/bitnami/apache/logs /emptydir/apache-logs-dir\nfi\ninfo \"Copying php var directory\"\n# PhpMyAdmin will fail to start if the php var folder is not populated\nif ! is_dir_empty /opt/bitnami/php/var; then\n cp -r /opt/bitnami/php/var /emptydir/php-var-dir\nfi\ninfo \"Copy operation completed\"\n" ], "command": [ "/bin/bash" ], "image": "docker.io/bitnami/phpmyadmin:5.2.1-debian-12-r36", "imagePullPolicy": "IfNotPresent", "name": "prepare-base-dir", "resources": { "limits": { "cpu": "375m", "ephemeral-storage": "2Gi", "memory": "384Mi" }, "requests": { "cpu": "250m", "ephemeral-storage": "50Mi", "memory": "256Mi" } }, "securityContext": { "allowPrivilegeEscalation": false, "capabilities": { "drop": [ "ALL" ] }, "privileged": false, "readOnlyRootFilesystem": true, "runAsGroup": 1001, "runAsNonRoot": true, "runAsUser": 1001, "seccompProfile": { "type": "RuntimeDefault" } }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", "volumeMounts": [ { "mountPath": "/emptydir", "name": "empty-dir" } ] } ], "restartPolicy": "Always", "schedulerName": "default-scheduler", "securityContext": { "fsGroup": 1001, "fsGroupChangePolicy": "Always" }, "serviceAccount": "phpmyadmin", "serviceAccountName": "phpmyadmin", "terminationGracePeriodSeconds": 30, "volumes": [ { "emptyDir": {}, "name": "empty-dir" } ] } } }, "status": { "availableReplicas": 1, "conditions": [ { "lastTransitionTime": "2024-09-06T12:29:17Z", "lastUpdateTime": "2024-09-06T12:30:08Z", "message": "ReplicaSet \"phpmyadmin-7f7bbf7bd7\" has successfully progressed.", "reason": "NewReplicaSetAvailable", "status": "True", "type": "Progressing" }, { "lastTransitionTime": "2024-09-09T11:54:00Z", "lastUpdateTime": "2024-09-09T11:54:00Z", "message": "Deployment has minimum availability.", "reason": "MinimumReplicasAvailable", "status": "True", "type": "Available" } ], "observedGeneration": 1, "readyReplicas": 1, "replicas": 1, "updatedReplicas": 1 } }