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
|
apiVersion: v1
|
||||||
kind: PersistentVolume
|
kind: PersistentVolume
|
||||||
metadata:
|
metadata:
|
||||||
name: postgres-pv
|
name: postgres-dev-pv
|
||||||
spec:
|
spec:
|
||||||
capacity:
|
capacity:
|
||||||
storage: 20Gi
|
storage: 20Gi
|
||||||
|
|
@ -13,7 +13,7 @@ spec:
|
||||||
persistentVolumeReclaimPolicy: Retain
|
persistentVolumeReclaimPolicy: Retain
|
||||||
storageClassName: local-storage
|
storageClassName: local-storage
|
||||||
hostPath:
|
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
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: postgres-pvc
|
name: postgres-pvc
|
||||||
namespace: default
|
namespace: dev
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
|
|
@ -40,7 +40,7 @@ apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: postgres
|
name: postgres
|
||||||
namespace: default
|
namespace: dev
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
|
|
@ -62,16 +62,6 @@ spec:
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: postgres-data
|
- name: postgres-data
|
||||||
mountPath: /var/lib/postgresql/data
|
mountPath: /var/lib/postgresql/data
|
||||||
readinessProbe:
|
|
||||||
tcpSocket:
|
|
||||||
port: 5432
|
|
||||||
initialDelaySeconds: 10
|
|
||||||
periodSeconds: 5
|
|
||||||
livenessProbe:
|
|
||||||
tcpSocket:
|
|
||||||
port: 5432
|
|
||||||
initialDelaySeconds: 30
|
|
||||||
periodSeconds: 10
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: postgres-data
|
- name: postgres-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
|
@ -85,7 +75,7 @@ apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: postgres-dev
|
name: postgres-dev
|
||||||
namespace: default
|
namespace: dev
|
||||||
spec:
|
spec:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
selector:
|
selector:
|
||||||
|
|
@ -95,13 +85,16 @@ spec:
|
||||||
targetPort: 5432
|
targetPort: 5432
|
||||||
|
|
||||||
---
|
---
|
||||||
|
# --------------------------------------------------
|
||||||
|
# Secret
|
||||||
|
# --------------------------------------------------
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: postgres-secret
|
name: postgres-secret
|
||||||
namespace: default
|
namespace: dev
|
||||||
type: Opaque
|
type: Opaque
|
||||||
stringData:
|
stringData:
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
POSTGRES_PASSWORD: averysecretpasswordPersonAppleWinter938
|
POSTGRES_PASSWORD: averysecretpasswordPersonAppleWinter938
|
||||||
POSTGRES_DB: stripe_invoice
|
POSTGRES_DB: stripe_invoice
|
||||||
|
|
|
||||||
|
|
@ -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