upgraded db
This commit is contained in:
parent
605d12d1df
commit
dea38d661f
2 changed files with 10 additions and 41 deletions
|
|
@ -4,7 +4,7 @@
|
|||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: postgres-pv
|
||||
name: postgres-dev-pv
|
||||
spec:
|
||||
capacity:
|
||||
storage: 20Gi
|
||||
|
|
@ -13,7 +13,7 @@ spec:
|
|||
persistentVolumeReclaimPolicy: Retain
|
||||
storageClassName: local-storage
|
||||
hostPath:
|
||||
path: /home/kimjunte/k8s_storage/postgres/stripe_invoice
|
||||
path: /home/kimjunte/k8s_storage/postgres/stripe_invoice_dev
|
||||
|
||||
---
|
||||
# --------------------------------------------------
|
||||
|
|
@ -23,7 +23,7 @@ apiVersion: v1
|
|||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: postgres-pvc
|
||||
namespace: default
|
||||
namespace: dev
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
|
|
@ -40,7 +40,7 @@ apiVersion: apps/v1
|
|||
kind: Deployment
|
||||
metadata:
|
||||
name: postgres
|
||||
namespace: default
|
||||
namespace: dev
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
|
|
@ -62,16 +62,6 @@ spec:
|
|||
volumeMounts:
|
||||
- name: postgres-data
|
||||
mountPath: /var/lib/postgresql/data
|
||||
readinessProbe:
|
||||
tcpSocket:
|
||||
port: 5432
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 5
|
||||
livenessProbe:
|
||||
tcpSocket:
|
||||
port: 5432
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
volumes:
|
||||
- name: postgres-data
|
||||
persistentVolumeClaim:
|
||||
|
|
@ -85,7 +75,7 @@ apiVersion: v1
|
|||
kind: Service
|
||||
metadata:
|
||||
name: postgres-dev
|
||||
namespace: default
|
||||
namespace: dev
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
|
|
@ -95,11 +85,14 @@ spec:
|
|||
targetPort: 5432
|
||||
|
||||
---
|
||||
# --------------------------------------------------
|
||||
# Secret
|
||||
# --------------------------------------------------
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: postgres-secret
|
||||
namespace: default
|
||||
namespace: dev
|
||||
type: Opaque
|
||||
stringData:
|
||||
POSTGRES_USER: postgres
|
||||
|
|
|
|||
|
|
@ -1,24 +0,0 @@
|
|||
# Github runners/workers needs access to secret to set env variable for various things
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: postgres-secret
|
||||
namespace: arc-systems
|
||||
type: Opaque
|
||||
stringData:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: averysecretpasswordPersonAppleWinter938
|
||||
POSTGRES_DB: stripe_invoice
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: postgres-prod-secret
|
||||
namespace: arc-systems
|
||||
type: Opaque
|
||||
stringData:
|
||||
POSTGRES_USER: stripe_invoice_prod
|
||||
POSTGRES_PASSWORD: productionPassword1142M@ke!tH@rd2Br3akWith$ymb0ls
|
||||
POSTGRES_DB: stripe_invoice_prod
|
||||
Loading…
Add table
Reference in a new issue