From 14da603d3b800ad6aba67e8f5af022328c604db3 Mon Sep 17 00:00:00 2001 From: gregory hendrickson Date: Thu, 26 Jan 2023 09:35:04 -0800 Subject: [PATCH] change pvc --- README.md | 4 +++- volumes/mysql-pv.yaml | 12 ++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 157763e..664c8b4 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ kubectl apply -f blog-config-map.yaml kubectl apply -f blog-secrets.yaml kubectl apply -f mysql-config-map.yaml kubectl apply -f mysql-secrets.yaml -kubectl apply -f services/ingress-service.yaml + kubectl apply -f volumes/traefik-pv.yaml kubectl apply -f volumes/traefik-pvc.yaml kubectl apply -f volumes/mysql-pv.yaml @@ -36,6 +36,8 @@ kubectl apply -f volumes/mysql-pvc.yaml kubectl apply -f volumes/blog-pv.yaml kubectl apply -f volumes/blog-pvc.yaml +kubectl apply -f services/ingress-service.yaml + This will create the necessary resources in the cluster, including a deployment for the Ghost app, a service for connecting to the MySQL server, and an ingress service for routing traffic to the Ghost app via the nginx-proxy with https and http. Volumes diff --git a/volumes/mysql-pv.yaml b/volumes/mysql-pv.yaml index 30c87ab..b21bd95 100644 --- a/volumes/mysql-pv.yaml +++ b/volumes/mysql-pv.yaml @@ -2,13 +2,13 @@ apiVersion: v1 kind: PersistentVolume metadata: name: mysql-pv + labels: + type: local spec: + storageClassName: manual capacity: - storage: 10Gi + storage: 1Gi accessModes: - ReadWriteOnce - persistentVolumeReclaimPolicy: Retain - storageClassName: standard - gcePersistentDisk: - pdName: mysql-disk - fsType: ext4 + hostPath: + path: "/mnt/data/mysql"