60 lines
1.3 KiB
YAML
60 lines
1.3 KiB
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: escape-game
|
|
spec:
|
|
ports:
|
|
- port: 80
|
|
targetPort: 8080
|
|
selector:
|
|
app: escape-game
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: escape-game
|
|
labels:
|
|
app: escape-game
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: escape-game
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: escape-game
|
|
spec:
|
|
containers:
|
|
- name: game
|
|
image: ${IMAGE_NAME} # Wird von CI ersetzt
|
|
ports:
|
|
- containerPort: 8080
|
|
env:
|
|
- name: REDIS_ADDR
|
|
value: "redis:6379"
|
|
- name: ADMIN_USER
|
|
value: "${ADMIN_USER}"
|
|
- name: ADMIN_PASS
|
|
value: "${ADMIN_PASS}"
|
|
resources:
|
|
requests:
|
|
memory: "64Mi"
|
|
cpu: "50m"
|
|
limits:
|
|
memory: "256Mi"
|
|
cpu: "500m"
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 8080
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 15
|
|
timeoutSeconds: 5
|
|
failureThreshold: 3
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 8080
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10 |