Bump up Deployment version and delete useless file (#7320)
This commit is contained in:
committed by
k8s-ci-robot
parent
e5de92a9b3
commit
bd5743f427
@@ -1,16 +0,0 @@
|
|||||||
apiVersion: apps/v1beta1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: nginx-deployment
|
|
||||||
spec:
|
|
||||||
replicas: 4 # Update the replicas from 2 to 4
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: nginx
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: nginx
|
|
||||||
image: nginx:1.8
|
|
||||||
ports:
|
|
||||||
- containerPort: 80
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
apiVersion: apps/v1beta1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: nginx-deployment
|
|
||||||
spec:
|
|
||||||
replicas: 2
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: nginx
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: nginx
|
|
||||||
image: nginx:1.8 # Update the version of nginx from 1.7.9 to 1.8
|
|
||||||
ports:
|
|
||||||
- containerPort: 80
|
|
||||||
@@ -1,8 +1,11 @@
|
|||||||
apiVersion: apps/v1beta1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: nginx-deployment
|
name: nginx-deployment
|
||||||
spec:
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: nginx
|
||||||
replicas: 2 # tells deployment to run 2 pods matching the template
|
replicas: 2 # tells deployment to run 2 pods matching the template
|
||||||
template: # create pods using pod definition in this template
|
template: # create pods using pod definition in this template
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
Reference in New Issue
Block a user