This commit is contained in:
Michael Thomson
2024-01-11 16:24:50 -05:00
parent f18f3fcfe9
commit fc16584870
13 changed files with 218 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: ghost-db
namespace: ghost
spec:
selector:
matchLabels:
app: ghost-db
template:
metadata:
labels:
app: ghost-db
spec:
containers:
- name: ghost-db
image: mysql:8.0
envFrom:
- secretRef:
name: ghost-db-secret
ports:
- containerPort: 3306
volumeMounts:
- mountPath: /var/lib/mysql
name: ghost-db-pvc
volumes:
- name: ghost-db-pvc
persistentVolumeClaim:
claimName: ghost-db-pvc