postgres todos

This commit is contained in:
2024-06-18 15:47:02 -04:00
parent 715bac1dd4
commit 2316ff11b6
7 changed files with 68 additions and 6 deletions

View File

@@ -0,0 +1,29 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: todo-app
namespace: todo
labels:
app: todo-app
spec:
replicas: 1
selector:
matchLabels:
app: todo-app
template:
metadata:
labels:
app: todo-app
spec:
containers:
- image: gitea.michaelthomson.dev/mthomson/go-todos-app:latest
name: todo-app
ports:
- name: http
containerPort: 3000
env:
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: database-url
key: DATABASE_URL