ungleich-k8s/apps/workadventure/unused/maps-deployment.yaml
2021-12-19 13:29:41 +01:00

63 lines
1.6 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
name: {{ .Release.Name }}-maps
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: maps
strategy:
type: Recreate
template:
metadata:
labels:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: maps
spec:
containers:
- env:
- name: DEBUG_MODE
- name: FRONT_URL
value: http://play.workadventure.localhost
- name: HOST
value: 0.0.0.0
- name: NODE_ENV
value: development
- name: STARTUP_COMMAND_0
value: sudo a2enmod headers
- name: STARTUP_COMMAND_1
value: yarn install
- name: STARTUP_COMMAND_2
value: yarn run dev &
image: thecodingmachine/php:8.1-v4-apache-node12
name: maps
ports:
- containerPort: 80
volumeMounts:
- mountPath: /var/www/html
name: maps-claim0
restartPolicy: Always
volumes:
- name: maps-claim0
persistentVolumeClaim:
claimName: maps-claim0
status: {}
---
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-maps
labels:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: maps
spec:
type: ClusterIP
ports:
- port: 8080
name: http
selector:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: maps