diff --git a/db/k8s/postgres/postgres-dev-stripe-to-invoice.yaml b/db/k8s/postgres/postgres-dev-stripe-to-invoice.yaml index 6402bc9..3016ae1 100644 --- a/db/k8s/postgres/postgres-dev-stripe-to-invoice.yaml +++ b/db/k8s/postgres/postgres-dev-stripe-to-invoice.yaml @@ -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,13 +85,16 @@ spec: targetPort: 5432 --- +# -------------------------------------------------- +# Secret +# -------------------------------------------------- apiVersion: v1 kind: Secret metadata: name: postgres-secret - namespace: default + namespace: dev type: Opaque stringData: POSTGRES_USER: postgres POSTGRES_PASSWORD: averysecretpasswordPersonAppleWinter938 - POSTGRES_DB: stripe_invoice \ No newline at end of file + POSTGRES_DB: stripe_invoice diff --git a/db/k8s/secrets/postgres-secret-dev.yaml b/db/k8s/secrets/postgres-secret-dev.yaml deleted file mode 100644 index 2dbdaf3..0000000 --- a/db/k8s/secrets/postgres-secret-dev.yaml +++ /dev/null @@ -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