Move to Tasks: Connect Front Back. (#3643)

* Move to Tasks: Connect Front Back.

* Fix paths.
This commit is contained in:
Steve Perry
2017-05-04 16:48:27 -07:00
committed by GitHub
parent 3996566963
commit 29790b232c
11 changed files with 13 additions and 13 deletions
@@ -0,0 +1,34 @@
kind: Service
apiVersion: v1
metadata:
name: frontend
spec:
selector:
app: hello
tier: frontend
ports:
- protocol: "TCP"
port: 80
targetPort: 80
type: LoadBalancer
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: frontend
spec:
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"]