Skip to content

Commit 6968514

Browse files
committed
Use mongo:5 instead of mongo:latest
1 parent 6f90fbf commit 6968514

23 files changed

+23
-23
lines changed

Chapter07/pod.quiz.aws.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
- name: http
1717
containerPort: 8080
1818
- name: mongo
19-
image: mongo
19+
image: mongo:5
2020
volumeMounts:
2121
- name: quiz-data
2222
mountPath: /data/db

Chapter07/pod.quiz.emptydir.init.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ spec:
2323
- name: http
2424
containerPort: 8080
2525
- name: mongo
26-
image: mongo
26+
image: mongo:5
2727
volumeMounts:
2828
- name: quiz-data
2929
mountPath: /data/db

Chapter07/pod.quiz.emptydir.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ spec:
1414
- name: http
1515
containerPort: 8080
1616
- name: mongo
17-
image: mongo
17+
image: mongo:5
1818
volumeMounts:
1919
- name: quiz-data
2020
mountPath: /data/db

Chapter07/pod.quiz.gcepd.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
- name: http
1717
containerPort: 8080
1818
- name: mongo
19-
image: mongo
19+
image: mongo:5
2020
volumeMounts:
2121
- name: quiz-data
2222
mountPath: /data/db

Chapter07/pod.quiz.hostpath.kind.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
- name: http
1717
containerPort: 8080
1818
- name: mongo
19-
image: mongo
19+
image: mongo:5
2020
volumeMounts:
2121
- name: quiz-data
2222
mountPath: /data/db

Chapter07/pod.quiz.hostpath.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
- name: http
1616
containerPort: 8080
1717
- name: mongo
18-
image: mongo
18+
image: mongo:5
1919
volumeMounts:
2020
- name: quiz-data
2121
mountPath: /data/db

Chapter07/pod.quiz.nfs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
- name: http
1717
containerPort: 8080
1818
- name: mongo
19-
image: mongo
19+
image: mongo:5
2020
volumeMounts:
2121
- name: quiz-data
2222
mountPath: /data/db

Chapter07/pod.quiz.novolume.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ spec:
1111
- name: http
1212
containerPort: 8080
1313
- name: mongo
14-
image: mongo
14+
image: mongo:5
1515

Chapter07/pod.quiz2.gcepd.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
- name: http
1717
containerPort: 8080
1818
- name: mongo
19-
image: mongo
19+
image: mongo:5
2020
volumeMounts:
2121
- name: quiz-data
2222
mountPath: /data/db

Chapter08/pod.example-nfs-mongodb-with-nfs-volume.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ spec:
1010
path: /some/path
1111
containers:
1212
- name: mongodb
13-
image: mongo
13+
image: mongo:5
1414
volumeMounts:
1515
- name: quiz-data
1616
mountPath: /data/db

Chapter08/pod.example-nfs-mongodb-with-pvc-volume.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ spec:
99
claimName: mongodb-claim
1010
containers:
1111
- name: mongodb
12-
image: mongo
12+
image: mongo:5
1313
volumeMounts:
1414
- name: quiz-data
1515
mountPath: /data/db

Chapter08/pod.quiz-default.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
- name: http
1616
containerPort: 8080
1717
- name: mongo
18-
image: mongo
18+
image: mongo:5
1919
volumeMounts:
2020
- name: quiz-data
2121
mountPath: /data/db

Chapter08/pod.quiz-fast.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
- name: http
1616
containerPort: 8080
1717
- name: mongo
18-
image: mongo
18+
image: mongo:5
1919
volumeMounts:
2020
- name: quiz-data
2121
mountPath: /data/db

Chapter08/pod.quiz-local.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
- name: http
1616
containerPort: 8080
1717
- name: mongo
18-
image: mongo
18+
image: mongo:5
1919
volumeMounts:
2020
- name: quiz-data
2121
mountPath: /data/db

Chapter08/pod.quiz.hostpath.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
- name: http
1616
containerPort: 8080
1717
- name: mongo
18-
image: mongo
18+
image: mongo:5
1919
volumeMounts:
2020
- name: quiz-data
2121
mountPath: /data/db

Chapter08/pod.quiz.other-data.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
- name: http
1616
containerPort: 8080
1717
- name: mongo
18-
image: mongo
18+
image: mongo:5
1919
volumeMounts:
2020
- name: quiz-data
2121
mountPath: /data/db

Chapter08/pod.quiz.pvc.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
- name: http
1616
containerPort: 8080
1717
- name: mongo
18-
image: mongo
18+
image: mongo:5
1919
volumeMounts:
2020
- name: quiz-data
2121
mountPath: /data/db

Chapter10/KIADA.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ spec:
168168
- name: http
169169
containerPort: 8080
170170
- name: mongo
171-
image: mongo
171+
image: mongo:5
172172
volumeMounts:
173173
- name: quiz-data
174174
mountPath: /data/db

Chapter10/kiada-suite/quiz/pod.quiz.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
1818
- name: http
1919
containerPort: 8080
2020
- name: mongo
21-
image: mongo
21+
image: mongo:5
2222
volumeMounts:
2323
- name: quiz-data
2424
mountPath: /data/db

Chapter11/SETUP/quiz/pod.quiz.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ spec:
2626
- name: http
2727
containerPort: 8080
2828
- name: mongo
29-
image: mongo
29+
image: mongo:5
3030
volumeMounts:
3131
- name: quiz-data
3232
mountPath: /data/db

Chapter11/pod.quiz-readiness.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ spec:
3131
path: /healthz/ready
3232
scheme: HTTP
3333
- name: mongo
34-
image: mongo
34+
image: mongo:5
3535
volumeMounts:
3636
- name: quiz-data
3737
mountPath: /data/db

Chapter12/SETUP/quiz/pod.quiz.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ spec:
3131
path: /healthz/ready
3232
scheme: HTTP
3333
- name: mongo
34-
image: mongo
34+
image: mongo:5
3535
volumeMounts:
3636
- name: quiz-data
3737
mountPath: /data/db

Chapter13/SETUP/quiz/pod.quiz.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ spec:
3131
path: /healthz/ready
3232
scheme: HTTP
3333
- name: mongo
34-
image: mongo
34+
image: mongo:5
3535
volumeMounts:
3636
- name: quiz-data
3737
mountPath: /data/db

0 commit comments

Comments
 (0)