Update production-pods.md and replace rc with deployments

This commit is contained in:
Janet Kuo
2016-03-30 19:08:02 -07:00
parent 21887f20ee
commit 84ebc37f66
7 changed files with 163 additions and 160 deletions
@@ -0,0 +1,20 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: nginx
spec:
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx
ports:
- containerPort: 80
lifecycle:
preStop:
exec:
# SIGTERM triggers a quick exit; gracefully terminate instead
command: ["/usr/sbin/nginx","-s","quit"]