Update apiVersion of Deployment to apps/v1 in v1.9 (#7163)

This commit is contained in:
Weibin Lin
2018-02-03 00:10:06 +08:00
committed by k8s-ci-robot
parent ad62225d5f
commit 17ee6902aa
2 changed files with 8 additions and 2 deletions
@@ -1,8 +1,11 @@
apiVersion: apps/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
spec:
selector:
matchLabels:
app: nginx
replicas: 2
template:
metadata:
+4 -1
View File
@@ -1,8 +1,11 @@
apiVersion: apps/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
spec:
selector:
matchLabels:
app: nginx
replicas: 2 # tells deployment to run 2 pods matching the template
template: # create pods using pod definition in this template
metadata: