-
Notifications
You must be signed in to change notification settings - Fork 110
Expand file tree
/
Copy pathdeployment.yaml
More file actions
54 lines (54 loc) · 1.53 KB
/
deployment.yaml
File metadata and controls
54 lines (54 loc) · 1.53 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
apiVersion: apps/v1
kind: Deployment
metadata:
name: '{{ include "image_based_video_search.fullname" . }}-nginx-reverse-proxy'
labels:
{{- include "image_based_video_search.labels" . | nindent 4 }}
katenary.v3/component: nginx-reverse-proxy
spec:
replicas: 1
selector:
matchLabels:
{{- include "image_based_video_search.selectorLabels" . | nindent 6 }}
katenary.v3/component: nginx-reverse-proxy
template:
metadata:
labels:
{{- include "image_based_video_search.selectorLabels" . | nindent 8 }}
katenary.v3/component: nginx-reverse-proxy
spec:
initContainers:
- name: generate-certs
image: alpine/openssl:3.5.4
command:
- /bin/sh
- -c
- /scripts/generate_certs.sh
volumeMounts:
- name: generate-certs-script
mountPath: /scripts
- name: nginx-ssl
mountPath: /etc/nginx/ssl
containers:
- name: nginx-reverse-proxy
image: nginx:1.27-alpine
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
- containerPort: 443
volumeMounts:
- name: nginx-conf
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
- name: nginx-ssl
mountPath: /etc/nginx/ssl
volumes:
- name: nginx-conf
configMap:
name: nginx-conf
- name: nginx-ssl
emptyDir: {}
- name: generate-certs-script
configMap:
name: generate-certs-script
defaultMode: 0755