mirror of
https://github.com/wahyd4/home-docker.git
synced 2026-08-09 04:15:52 +10:00
move pg to local pvc
This commit is contained in:
@@ -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
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user