primer commit

This commit is contained in:
danielcruzmx
2026-03-11 14:13:21 -06:00
commit 1a2f9d6431
2 changed files with 44 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
.env/
pgdata/

42
infra/db_pod.yaml Normal file
View File

@@ -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