333 lines
14 KiB
JSON
333 lines
14 KiB
JSON
{
|
|
"apiVersion": "apps/v1",
|
|
"kind": "StatefulSet",
|
|
"metadata": {
|
|
"annotations": {
|
|
"meta.helm.sh/release-name": "wordpress",
|
|
"meta.helm.sh/release-namespace": "default"
|
|
},
|
|
"creationTimestamp": "2024-09-09T12:29:35Z",
|
|
"generation": 1,
|
|
"labels": {
|
|
"app.kubernetes.io/component": "primary",
|
|
"app.kubernetes.io/instance": "wordpress",
|
|
"app.kubernetes.io/managed-by": "Helm",
|
|
"app.kubernetes.io/name": "mariadb",
|
|
"app.kubernetes.io/version": "11.4.2",
|
|
"helm.sh/chart": "mariadb-19.0.3"
|
|
},
|
|
"name": "wordpress-mariadb",
|
|
"namespace": "default",
|
|
"resourceVersion": "92784",
|
|
"uid": "82197de7-3b4f-4225-b1a2-58e8ac0fad44"
|
|
},
|
|
"spec": {
|
|
"persistentVolumeClaimRetentionPolicy": {
|
|
"whenDeleted": "Retain",
|
|
"whenScaled": "Retain"
|
|
},
|
|
"podManagementPolicy": "OrderedReady",
|
|
"replicas": 1,
|
|
"revisionHistoryLimit": 10,
|
|
"selector": {
|
|
"matchLabels": {
|
|
"app.kubernetes.io/component": "primary",
|
|
"app.kubernetes.io/instance": "wordpress",
|
|
"app.kubernetes.io/name": "mariadb"
|
|
}
|
|
},
|
|
"serviceName": "wordpress-mariadb",
|
|
"template": {
|
|
"metadata": {
|
|
"annotations": {
|
|
"checksum/configuration": "0fdca6295cb246435ed7edb5801c3445ca97c878dcce94b652f2fec128efd78a"
|
|
},
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"app.kubernetes.io/component": "primary",
|
|
"app.kubernetes.io/instance": "wordpress",
|
|
"app.kubernetes.io/managed-by": "Helm",
|
|
"app.kubernetes.io/name": "mariadb",
|
|
"app.kubernetes.io/version": "11.4.2",
|
|
"helm.sh/chart": "mariadb-19.0.3"
|
|
}
|
|
},
|
|
"spec": {
|
|
"affinity": {
|
|
"podAntiAffinity": {
|
|
"preferredDuringSchedulingIgnoredDuringExecution": [
|
|
{
|
|
"podAffinityTerm": {
|
|
"labelSelector": {
|
|
"matchLabels": {
|
|
"app.kubernetes.io/component": "primary",
|
|
"app.kubernetes.io/instance": "wordpress",
|
|
"app.kubernetes.io/name": "mariadb"
|
|
}
|
|
},
|
|
"topologyKey": "kubernetes.io/hostname"
|
|
},
|
|
"weight": 1
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"automountServiceAccountToken": false,
|
|
"containers": [
|
|
{
|
|
"env": [
|
|
{
|
|
"name": "BITNAMI_DEBUG",
|
|
"value": "false"
|
|
},
|
|
{
|
|
"name": "MARIADB_ROOT_PASSWORD",
|
|
"valueFrom": {
|
|
"secretKeyRef": {
|
|
"key": "mariadb-root-password",
|
|
"name": "wordpress-mariadb"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "MARIADB_USER",
|
|
"value": "bn_wordpress"
|
|
},
|
|
{
|
|
"name": "MARIADB_PASSWORD",
|
|
"valueFrom": {
|
|
"secretKeyRef": {
|
|
"key": "mariadb-password",
|
|
"name": "wordpress-mariadb"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "MARIADB_DATABASE",
|
|
"value": "bitnami_wordpress"
|
|
}
|
|
],
|
|
"image": "docker.io/bitnami/mariadb:11.4.2-debian-12-r2",
|
|
"imagePullPolicy": "IfNotPresent",
|
|
"livenessProbe": {
|
|
"exec": {
|
|
"command": [
|
|
"/bin/bash",
|
|
"-ec",
|
|
"password_aux=\"${MARIADB_ROOT_PASSWORD:-}\"\nif [[ -f \"${MARIADB_ROOT_PASSWORD_FILE:-}\" ]]; then\n password_aux=$(cat \"$MARIADB_ROOT_PASSWORD_FILE\")\nfi\nmysqladmin status -uroot -p\"${password_aux}\"\n"
|
|
]
|
|
},
|
|
"failureThreshold": 3,
|
|
"initialDelaySeconds": 120,
|
|
"periodSeconds": 10,
|
|
"successThreshold": 1,
|
|
"timeoutSeconds": 1
|
|
},
|
|
"name": "mariadb",
|
|
"ports": [
|
|
{
|
|
"containerPort": 3306,
|
|
"name": "mysql",
|
|
"protocol": "TCP"
|
|
}
|
|
],
|
|
"readinessProbe": {
|
|
"exec": {
|
|
"command": [
|
|
"/bin/bash",
|
|
"-ec",
|
|
"password_aux=\"${MARIADB_ROOT_PASSWORD:-}\"\nif [[ -f \"${MARIADB_ROOT_PASSWORD_FILE:-}\" ]]; then\n password_aux=$(cat \"$MARIADB_ROOT_PASSWORD_FILE\")\nfi\nmysqladmin ping -uroot -p\"${password_aux}\"\n"
|
|
]
|
|
},
|
|
"failureThreshold": 3,
|
|
"initialDelaySeconds": 30,
|
|
"periodSeconds": 10,
|
|
"successThreshold": 1,
|
|
"timeoutSeconds": 1
|
|
},
|
|
"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,
|
|
"seLinuxOptions": {},
|
|
"seccompProfile": {
|
|
"type": "RuntimeDefault"
|
|
}
|
|
},
|
|
"terminationMessagePath": "/dev/termination-log",
|
|
"terminationMessagePolicy": "File",
|
|
"volumeMounts": [
|
|
{
|
|
"mountPath": "/bitnami/mariadb",
|
|
"name": "data"
|
|
},
|
|
{
|
|
"mountPath": "/opt/bitnami/mariadb/conf/my.cnf",
|
|
"name": "config",
|
|
"subPath": "my.cnf"
|
|
},
|
|
{
|
|
"mountPath": "/tmp",
|
|
"name": "empty-dir",
|
|
"subPath": "tmp-dir"
|
|
},
|
|
{
|
|
"mountPath": "/opt/bitnami/mariadb/conf",
|
|
"name": "empty-dir",
|
|
"subPath": "app-conf-dir"
|
|
},
|
|
{
|
|
"mountPath": "/opt/bitnami/mariadb/tmp",
|
|
"name": "empty-dir",
|
|
"subPath": "app-tmp-dir"
|
|
},
|
|
{
|
|
"mountPath": "/opt/bitnami/mariadb/logs",
|
|
"name": "empty-dir",
|
|
"subPath": "app-logs-dir"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"dnsPolicy": "ClusterFirst",
|
|
"initContainers": [
|
|
{
|
|
"args": [
|
|
"-ec",
|
|
"#!/bin/bash\n\n. /opt/bitnami/scripts/libfs.sh\n# We copy the logs folder because it has symlinks to stdout and stderr\nif ! is_dir_empty /opt/bitnami/mariadb/logs; then\n cp -r /opt/bitnami/mariadb/logs /emptydir/app-logs-dir\nfi\n"
|
|
],
|
|
"command": [
|
|
"/bin/bash"
|
|
],
|
|
"image": "docker.io/bitnami/mariadb:11.4.2-debian-12-r2",
|
|
"imagePullPolicy": "IfNotPresent",
|
|
"name": "preserve-logs-symlinks",
|
|
"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,
|
|
"seLinuxOptions": {},
|
|
"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": "wordpress-mariadb",
|
|
"serviceAccountName": "wordpress-mariadb",
|
|
"terminationGracePeriodSeconds": 30,
|
|
"volumes": [
|
|
{
|
|
"emptyDir": {},
|
|
"name": "empty-dir"
|
|
},
|
|
{
|
|
"configMap": {
|
|
"defaultMode": 420,
|
|
"name": "wordpress-mariadb"
|
|
},
|
|
"name": "config"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"updateStrategy": {
|
|
"type": "RollingUpdate"
|
|
},
|
|
"volumeClaimTemplates": [
|
|
{
|
|
"apiVersion": "v1",
|
|
"kind": "PersistentVolumeClaim",
|
|
"metadata": {
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"app.kubernetes.io/component": "primary",
|
|
"app.kubernetes.io/instance": "wordpress",
|
|
"app.kubernetes.io/name": "mariadb"
|
|
},
|
|
"name": "data"
|
|
},
|
|
"spec": {
|
|
"accessModes": [
|
|
"ReadWriteOnce"
|
|
],
|
|
"resources": {
|
|
"requests": {
|
|
"storage": "8Gi"
|
|
}
|
|
},
|
|
"volumeMode": "Filesystem"
|
|
},
|
|
"status": {
|
|
"phase": "Pending"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"status": {
|
|
"availableReplicas": 1,
|
|
"collisionCount": 0,
|
|
"currentReplicas": 1,
|
|
"currentRevision": "wordpress-mariadb-599b74c5bc",
|
|
"observedGeneration": 1,
|
|
"readyReplicas": 1,
|
|
"replicas": 1,
|
|
"updateRevision": "wordpress-mariadb-599b74c5bc",
|
|
"updatedReplicas": 1
|
|
}
|
|
}
|