Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: extensions/v1beta1
- kind: Deployment
- metadata:
- name: frontend
- spec:
- replicas: 1
- template:
- metadata:
- labels:
- app: frontend
- track: stable
- spec:
- containers:
- - name: nginx
- image: "hackingteam/nginx-modsecurity"
- lifecycle:
- postStart:
- exec:
- command: ["nginx -g 'daemon off;' "]
- preStop:
- exec:
- command: ["service nginx stop","quit"]
- volumeMounts:
- - name: "nginx-frontend-conf"
- mountPath: "/etc/nginx/conf.d"
- - name: "tls-certs"
- mountPath: "/etc/tls"
- volumes:
- - name: "tls-certs"
- secret:
- secretName: "tls-certs"
- - name: "nginx-frontend-conf"
- configMap:
- name: "nginx-frontend-conf"
- items:
- - key: "frontend.conf"
- path: "frontend.conf"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement