-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathfrontend-es.yaml
More file actions
34 lines (34 loc) · 868 Bytes
/
frontend-es.yaml
File metadata and controls
34 lines (34 loc) · 868 Bytes
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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: frontend-es
spec:
replicas: 1
template:
metadata:
labels:
app: frontend-es
track: stable
spec:
containers:
- name: nginx
image: "nginx:1.9.14"
lifecycle:
preStop:
exec:
command: ["/usr/sbin/nginx","-s","quit"]
volumeMounts:
- name: "nginx-es-frontend-conf"
mountPath: "/etc/nginx/conf.d"
#- name: "tls-certs"
# mountPath: "/etc/tls"
volumes:
#- name: "tls-certs"
# secret:
# secretName: "tls-certs"
- name: "nginx-es-frontend-conf"
configMap:
name: "nginx-es-frontend-conf"
items:
- key: "frontend.conf"
path: "frontend.conf"