re-added pv and pvc

This commit is contained in:
gregory hendrickson
2023-01-26 09:09:42 -08:00
parent 53841a6ac4
commit 2d242afffe
6 changed files with 26 additions and 28 deletions

View File

@@ -56,10 +56,10 @@ spec:
requests:
cpu: "100m"
memory: "256Mi"
# volumeMounts:
# - name: ghost-data
# mountPath: /var/lib/ghost/content
# volumes:
# - name: ghost-data
# persistentVolumeClaim:
# claimName: ghost-data-pvc
volumeMounts:
- name: ghost-data
mountPath: /var/lib/ghost/content
volumes:
- name: ghost-data
persistentVolumeClaim:
claimName: ghost-data-pvc

View File

@@ -46,10 +46,10 @@ spec:
limits:
memory: "512Mi"
cpu: "500m"
# volumeMounts:
# - name: mysql-data
# mountPath: /var/lib/mysql
# volumes:
# - name: mysql-data
# persistentVolumeClaim:
# claimName: mysql-pv-disk
volumeMounts:
- mountPath: "/var/lib/mysql"
name: mysql-storage
volumes:
- name: mysql-storage
persistentVolumeClaim:
claimName: mysql-pvc

View File

@@ -2,12 +2,12 @@ apiVersion: v1
kind: PersistentVolume
metadata:
name: ghost-data-pv
namespace: blog
spec:
storageClassName: standard
capacity:
storage: 25Gi
accessModes:
- ReadWriteOnce
storageClassName: standard
gcePersistentDisk:
pdName: ghost-data-pv
fsType: ext4
hostPath:
path: "/mnt/data"

View File

@@ -2,13 +2,11 @@ apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: ghost-data-pvc
namespace: blog
spec:
storageClassName: standard
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 25Gi
storageClassName: standard
selector:
matchLabels:
app: ghost-blog

View File

@@ -2,13 +2,13 @@ apiVersion: v1
kind: PersistentVolume
metadata:
name: mysql-pv
labels:
type: local
spec:
storageClassName: standard
storageClassName: manual
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
gcePersistentDisk:
pdName: mysql-pv-disk
fsType: ext4
hostPath:
path: "/mnt/data"

View File

@@ -3,7 +3,7 @@ kind: PersistentVolumeClaim
metadata:
name: mysql-pvc
spec:
storageClassName: standard
storageClassName: manual
accessModes:
- ReadWriteOnce
resources: