62 lines
1.4 KiB
YAML
62 lines
1.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: fifa2026-api
|
|
namespace: fifa2026
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
app: fifa2026-api
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: fifa2026-api
|
|
spec:
|
|
containers:
|
|
- name: api
|
|
image: ghcr.io/your-org/2026fifa-backend:latest
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- containerPort: 8000
|
|
env:
|
|
- name: PORT
|
|
value: "8000"
|
|
- name: REDIS_URL
|
|
value: redis://fifa2026-redis:6379/0
|
|
- name: DATABASE_URL
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: fifa2026-platform-config
|
|
key: DATABASE_URL
|
|
- name: NEXTAUTH_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: fifa2026-secrets
|
|
key: NEXTAUTH_SECRET
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 8000
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 8000
|
|
initialDelaySeconds: 15
|
|
periodSeconds: 15
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: fifa2026-api
|
|
namespace: fifa2026
|
|
spec:
|
|
selector:
|
|
app: fifa2026-api
|
|
ports:
|
|
- port: 8000
|
|
targetPort: 8000
|
|
|