mirror of
https://github.com/michaelthomson0797/fleet-infra.git
synced 2026-02-04 21:09:58 +00:00
30 lines
573 B
YAML
30 lines
573 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: todo
|
|
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
|
|
ports:
|
|
- name: http
|
|
containerPort: 3000
|
|
env:
|
|
- name: DATABASE_URL
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: database-url
|
|
key: DATABASE_URL
|