From 1a2f9d64316d5d782db88c89662479d72340cd6e Mon Sep 17 00:00:00 2001 From: danielcruzmx Date: Wed, 11 Mar 2026 14:13:21 -0600 Subject: [PATCH] primer commit --- .gitignore | 2 ++ infra/db_pod.yaml | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 .gitignore create mode 100644 infra/db_pod.yaml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7a44df3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.env/ +pgdata/ \ No newline at end of file diff --git a/infra/db_pod.yaml b/infra/db_pod.yaml new file mode 100644 index 0000000..43b3c81 --- /dev/null +++ b/infra/db_pod.yaml @@ -0,0 +1,42 @@ +--- +apiVersion: v1 + +kind: Pod + +metadata: + name: db_stack_pod + labels: + app: db_stack + +spec: + containers: + - name: postgres-db + image: docker.io/library/postgres:latest + ports: + - containerPort: 5432 + envFrom: + - configMapRef: + name: postgres-config + volumeMounts: + - name: postgres-storage + mountPath: /var/lib/postgresql + - name: pgadmin-web + image: docker.io/dpage/pgadmin4:latest + ports: + - containerPort: 80 + hostPort: 8081 + envFrom: + - configMapRef: + name: postgres-config + volumeMounts: + - name: pgadmin-data + mountPath: /var/lib/pgadmin + volumes: + - name: postgres-storage + hostPath: + path: ./pgdata/data + type: DirectoryOrCreate + - name: pgadmin-data + hostPath: + path: ./pgdata/pgadmin + type: DirectoryOrCreate