Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (34 sloc) 868 Bytes
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"