update tutorial not to use ‘kubectl run’ for creating deployment (#14980)

* update tutorial not to use ‘kubectl run’ for creating deployment

* fix code stype

* fix text stype

* fix ordered list

* delete blank line for md
This commit is contained in:
zwwhdls
2019-06-27 02:17:21 +08:00
committed by Kubernetes Prow Robot
parent cb574f4b75
commit e089eab6fb
2 changed files with 34 additions and 9 deletions
@@ -0,0 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-world
spec:
selector:
matchLabels:
run: load-balancer-example
replicas: 2
template:
metadata:
labels:
run: load-balancer-example
spec:
containers:
- name: hello-world
image: gcr.io/google-samples/node-hello:1.0
ports:
- containerPort: 8080
protocol: TCP