mirror of
https://github.com/michaelthomson0797/fleet-infra.git
synced 2026-02-04 13:09:53 +00:00
postgres todos
This commit is contained in:
29
todo/frontend/deployment.yaml
Normal file
29
todo/frontend/deployment.yaml
Normal 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
|
||||
Reference in New Issue
Block a user