[zh] Resync connecting-frontend-backend

This commit is contained in:
Qiming Teng
2021-01-30 12:32:43 +08:00
parent 9ade714aab
commit 15be3b1c7b
8 changed files with 152 additions and 114 deletions
@@ -0,0 +1,27 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend
spec:
selector:
matchLabels:
app: hello
tier: frontend
track: stable
replicas: 1
template:
metadata:
labels:
app: hello
tier: frontend
track: stable
spec:
containers:
- name: nginx
image: "gcr.io/google-samples/hello-frontend:1.0"
lifecycle:
preStop:
exec:
command: ["/usr/sbin/nginx","-s","quit"]
...