c4k-taiga/src/main/resources/taiga/gateway-deployment.yaml

47 lines
1.2 KiB
YAML
Raw Normal View History

2023-08-10 12:17:25 +02:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: taiga-gateway-deployment
labels:
app.kubernetes.part-of: c4k-taiga
app.kubernetes.io/component: taiga-gateway
2023-08-10 12:17:25 +02:00
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/component: taiga-gateway
2023-08-10 12:17:25 +02:00
template:
metadata:
labels:
app.kubernetes.io/component: taiga-gateway
2023-08-10 12:17:25 +02:00
spec:
restartPolicy: Always
containers:
- name: taiga-gateway
image: nginx:1.19-alpine
imagePullPolicy: IfNotPresent
ports:
2023-08-10 12:24:13 +02:00
- name: http
2023-08-10 12:52:05 +02:00
containerPort: 80
2023-08-10 12:17:25 +02:00
volumeMounts:
2023-08-18 12:57:07 +02:00
- name: taiga-gateway-configmap
mountPath: /etc/nginx/conf.d
2023-08-22 13:12:15 +02:00
readOnly: false
2023-08-10 12:17:25 +02:00
- name: taiga-static
mountPath: /taiga/static
readOnly: false
- name: taiga-media
mountPath: /taiga/media
readOnly: false
2023-08-10 12:24:13 +02:00
volumes:
- name: taiga-gateway-configmap
2023-08-10 12:17:25 +02:00
configMap:
2023-08-10 12:24:13 +02:00
name: taiga-gateway-configmap
2023-08-10 12:17:25 +02:00
- name: taiga-static
persistentVolumeClaim:
2023-08-18 12:57:07 +02:00
claimName: taiga-static-data
2023-08-10 12:17:25 +02:00
- name: taiga-media
persistentVolumeClaim:
2023-08-18 12:57:07 +02:00
claimName: taiga-media-data