Init
Some checks failed
Build & Deploy Game / build-and-deploy (push) Failing after 6s
Some checks failed
Build & Deploy Game / build-and-deploy (push) Failing after 6s
This commit is contained in:
42
k8s/app.yaml
Normal file
42
k8s/app.yaml
Normal file
@@ -0,0 +1,42 @@
|
||||
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:
|
||||
# Kubernetes DNS: "service-name:port"
|
||||
# Da wir im selben Namespace sind, reicht "redis:6379"
|
||||
- name: REDIS_ADDR
|
||||
value: "redis:6379"
|
||||
# Admin Zugangsdaten (werden von CI injected oder hier fest)
|
||||
- name: ADMIN_USER
|
||||
value: "${ADMIN_USER}"
|
||||
- name: ADMIN_PASS
|
||||
value: "${ADMIN_PASS}"
|
||||
Reference in New Issue
Block a user