move pg to local pvc

This commit is contained in:
2021-08-17 21:53:43 +10:00
parent 6fcb8c4d0e
commit 94c1cdb986
3 changed files with 41 additions and 3 deletions
+29
View File
@@ -0,0 +1,29 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: local-postgres-pv
labels:
type: local
spec:
storageClassName: manual
persistentVolumeReclaimPolicy: Recycle
capacity:
storage: 50Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/data"
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: local-postgres-pvc
spec:
storageClassName: manual
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 50Gi
+11 -2
View File
@@ -5,8 +5,8 @@
postgresqlDatabase: home
persistence:
mountPath: /bitnami/postgresql
storageClass: nfs
existingClaim: postgres-nfs
storageClass: local
existingClaim: local-postgres-pvc
volumePermissions:
enabled: true
securityContext:
@@ -45,3 +45,12 @@ customRreadinessProbe:
timeoutSeconds: 5
successThreshold: 2
failureThreshold: 6
primary:
nodeSelector:
kubernetes.io/hostname: server-1
tolerations:
- key: "node"
operator: "Equal"
value: "special"
effect: "NoSchedule"
+1 -1
View File
@@ -74,7 +74,7 @@ config:
- wahyd4/aria2-ariang-docker
- wahyd4/aria2-ariang-x-docker-compose
- wahyd4/knowledge-mind-mapping
access_token: 6bc9a1aa2d8a13da59127d4184167acc84e7bbfa
access_token: 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
http_timeout: 10s
- http:
interval: "900s"