mirror of
https://github.com/ghndrx/blog-manifest.git
synced 2026-02-10 06:54:59 +00:00
re-added pv and pvc
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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"
|
||||
@@ -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
|
||||
@@ -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"
|
||||
|
||||
@@ -3,7 +3,7 @@ kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: mysql-pvc
|
||||
spec:
|
||||
storageClassName: standard
|
||||
storageClassName: manual
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
|
||||
Reference in New Issue
Block a user