Peter Kurfer
c592010f90
All checks were successful
continuous-integration/drone/push Build is passing
51 lines
964 B
YAML
51 lines
964 B
YAML
---
|
|
apiVersion: mariadb.mmontes.io/v1alpha1
|
|
kind: MariaDB
|
|
metadata:
|
|
name: ghostcms-db
|
|
spec:
|
|
rootPasswordSecretKeyRef:
|
|
name: ghostcms-db-creds
|
|
key: root-password
|
|
|
|
image: mariadb:11.1.2
|
|
|
|
port: 3306
|
|
|
|
|
|
database: ghostcms
|
|
username: ghostcms
|
|
passwordSecretKeyRef:
|
|
name: ghostcms-db-creds
|
|
key: password
|
|
|
|
volumeClaimTemplate:
|
|
storageClassName: hcloud-volumes
|
|
resources:
|
|
requests:
|
|
storage: 10Gi
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
|
|
livenessProbe:
|
|
exec:
|
|
command:
|
|
- bash
|
|
- -c
|
|
- mariadb -u root -p"${MARIADB_ROOT_PASSWORD}" -e "SELECT 1;"
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
|
|
readinessProbe:
|
|
exec:
|
|
command:
|
|
- bash
|
|
- -c
|
|
- mariadb -u root -p"${MARIADB_ROOT_PASSWORD}" -e "SELECT 1;"
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|