Files
Cluster/nextcloud/maria-db-deployment.yaml
T
2026-10-20 16:03:32 +02:00

32 lines
792 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: maria-db-nextcloud-deployment
labels:
app: maria-db-nextcloud
spec:
replicas: 1
selector:
matchLabels:
app: maria-db-nextcloud
template:
metadata:
labels:
app: maria-db-nextcloud
spec:
containers:
- name: maria-db-nextcloud
image: mariadb:11.4.4
envFrom:
- configMapRef:
name: maria-db-nextcloud-configmap
volumeMounts:
- name: maria-db-nextcloud-volume
mountPath: /var/lib/mysql
ports:
- containerPort: 3306
volumes:
- name: maria-db-nextcloud-volume
hostPath:
path: /root/kubernetes/nextcloud/data/mysql