/
deployment-nginx.yaml
41 lines (41 loc) · 1.33 KB
/
deployment-nginx.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "renku-core.fullname" $ }}-nginx
labels:
app.kubernetes.io/name: {{ include "renku-core.fullname" $ }}-nginx
spec:
selector:
matchLabels:
app.kubernetes.io/name: {{ include "renku-core.fullname" $ }}-nginx
replicas: 1
template:
metadata:
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
labels:
app.kubernetes.io/name: {{ include "renku-core.fullname" $ }}-nginx
spec:
automountServiceAccountToken: false
containers:
- name: nginx
image: bitnami/nginx:1.21.4
imagePullPolicy: IfNotPresent
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
ports:
- containerPort: 8080
volumeMounts:
- name: nginx-volume
readOnly: true
mountPath: /opt/bitnami/nginx/conf/server_blocks/nginx-server-blocks.conf
subPath: nginx-server-blocks.conf
- name: nginx-volume
readOnly: true
mountPath: /usr/share/nginx/html/version.json
subPath: version.json
volumes:
- name: nginx-volume
configMap:
name: {{ include "renku-core.fullname" . }}-nginx