todos app

This commit is contained in:
2024-06-18 15:11:22 -04:00
parent b5f0cbff4b
commit 715bac1dd4
6 changed files with 102 additions and 0 deletions

29
todo/deployment.yaml Normal file
View File

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