From 94c5e4b1a40e1c05ae7fd3ff1eeacc0e77fd48d9 Mon Sep 17 00:00:00 2001 From: Pankaj Date: Mon, 12 Aug 2024 21:12:30 +0530 Subject: [PATCH] Fix postgres-deployment.yaml --- scripts/test/postgres-deployment.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/scripts/test/postgres-deployment.yaml b/scripts/test/postgres-deployment.yaml index e69de29bb..05aa006f4 100644 --- a/scripts/test/postgres-deployment.yaml +++ b/scripts/test/postgres-deployment.yaml @@ -0,0 +1,26 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: postgres +spec: + replicas: 1 + selector: + matchLabels: + app: postgres + template: + metadata: + labels: + app: postgres + spec: + containers: + + - name: postgres + image: bitnami/postgres:latest # Replace with desired Bitnami Postgres image + env: + - name: POSTGRES_PASSWORD + valueFrom: + secretKeyRef: + name: postgres-postgresql + key: postgres-password + ports: + - containerPort: 5432