Skip to content

Commit c952554

Browse files
committed
Initialize quiz data in chapter 10
1 parent fcdba1a commit c952554

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

+12
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,18 @@ metadata:
77
rel: stable
88
spec:
99
volumes:
10+
- name: initdb
11+
emptyDir: {}
1012
- name: quiz-data
1113
persistentVolumeClaim:
1214
claimName: quiz-data
15+
initContainers:
16+
- name: installer
17+
image: luksa/quiz-initdb-script-installer:0.1
18+
imagePullPolicy: Always
19+
volumeMounts:
20+
- name: initdb
21+
mountPath: /initdb.d
1322
containers:
1423
- name: quiz-api
1524
image: luksa/quiz-api:0.1
@@ -22,4 +31,7 @@ spec:
2231
volumeMounts:
2332
- name: quiz-data
2433
mountPath: /data/db
34+
- name: initdb
35+
mountPath: /docker-entrypoint-initdb.d/
36+
readOnly: true
2537

0 commit comments

Comments
 (0)