-
Notifications
You must be signed in to change notification settings - Fork 311
/
deploy.quiz.yaml
48 lines (48 loc) · 1.03 KB
/
deploy.quiz.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
apiVersion: apps/v1
kind: Deployment
metadata:
name: quiz
spec:
replicas: 1
selector:
matchLabels:
app: quiz
rel: stable
template:
metadata:
labels:
app: quiz
rel: stable
spec:
volumes:
- name: initdb
emptyDir: {}
- name: quiz-data
emptyDir: {}
initContainers:
- name: installer
image: luksa/quiz-initdb-script-installer:0.1
imagePullPolicy: Always
volumeMounts:
- name: initdb
mountPath: /initdb.d
containers:
- name: quiz-api
image: luksa/quiz-api:0.1
imagePullPolicy: Always
ports:
- name: http
containerPort: 8080
readinessProbe:
httpGet:
port: 8080
path: /healthz/ready
scheme: HTTP
- name: mongo
image: mongo:5
volumeMounts:
- name: quiz-data
mountPath: /data/db
- name: initdb
mountPath: /docker-entrypoint-initdb.d/
readOnly: true