update tutorial to use deployment yaml file (#14959)

* update run command for deployment

* recommended label name
This commit is contained in:
mohamed chiheb ben jemaa
2019-06-19 20:18:31 +01:00
committed by Kubernetes Prow Robot
parent 01bd547d3e
commit b9a5c8d7b0
2 changed files with 30 additions and 4 deletions
@@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/name: load-balancer-example
name: hello-world
spec:
replicas: 5
selector:
matchLabels:
app.kubernetes.io/name: load-balancer-example
template:
metadata:
labels:
app.kubernetes.io/name: load-balancer-example
spec:
containers:
- image: gcr.io/google-samples/node-hello:1.0
name: hello-world
ports:
- containerPort: 8080