Skip to content

Commit 2996ed4

Browse files
committed
refactor(04_*_deployment.yml): Move replicas before selector & rename containers to main
1 parent ed6b43e commit 2996ed4

5 files changed

+9
-9
lines changed

04_01_deployment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ metadata:
44
name: hello-world
55
spec:
66
revisionHistoryLimit: 0
7+
replicas: 2
78
selector:
89
matchLabels:
910
app: hello-world-deploy
10-
replicas: 2
1111
template:
1212
metadata:
1313
labels:

04_02_deployment.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ metadata:
44
name: hello-world
55
spec:
66
revisionHistoryLimit: 0
7+
replicas: 2
78
selector:
89
matchLabels:
910
app: hello-world-deploy
10-
replicas: 2
1111
template:
1212
metadata:
1313
labels:
1414
app: hello-world-deploy
1515
svc: example
1616
spec:
1717
containers:
18-
- name: hello-world
18+
- name: main
1919
image: ondrejsika/training-example:yellow
2020
ports:
2121
- containerPort: 80

04_03_deployment.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ metadata:
44
name: hello-world
55
spec:
66
revisionHistoryLimit: 0
7+
replicas: 2
78
selector:
89
matchLabels:
910
app: hello-world-deploy
10-
replicas: 2
1111
template:
1212
metadata:
1313
labels:
1414
app: hello-world-deploy
1515
svc: example
1616
spec:
1717
containers:
18-
- name: hello-world
18+
- name: main
1919
image: nginx
2020
ports:
2121
- containerPort: 80

04_04_deployment.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ metadata:
44
name: hello-world
55
spec:
66
revisionHistoryLimit: 0
7+
replicas: 2
78
selector:
89
matchLabels:
910
app: hello-world-deploy
10-
replicas: 2
1111
template:
1212
metadata:
1313
labels:
1414
app: hello-world-deploy
1515
svc: example
1616
spec:
1717
containers:
18-
- name: hello-world
18+
- name: main
1919
image: httpd
2020
ports:
2121
- containerPort: 80

04_05_deployment.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ metadata:
44
name: hello-world
55
spec:
66
revisionHistoryLimit: 0
7+
replicas: 2
78
selector:
89
matchLabels:
910
app: hello-world-deploy
10-
replicas: 2
1111
template:
1212
metadata:
1313
labels:
1414
app: hello-world-deploy
1515
svc: example
1616
spec:
1717
containers:
18-
- name: hello-world
18+
- name: main
1919
image: ondrejsika/not-existing-image
2020
ports:
2121
- containerPort: 80

0 commit comments

Comments
 (0)