mirror of
https://github.com/ghndrx/blog-manifest.git
synced 2026-02-10 06:54:59 +00:00
change pvc
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user