-
Notifications
You must be signed in to change notification settings - Fork 311
/
pod.quote-readiness.yaml
48 lines (48 loc) · 986 Bytes
/
pod.quote-readiness.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: v1
kind: Pod
metadata:
name: quote-readiness
labels:
app: quote
rel: stable
spec:
volumes:
- name: shared
emptyDir: {}
initContainers:
- name: index-creator
image: busybox
command:
- sh
- -c
- echo "This is the quote service running in pod $HOSTNAME on node $NODE_NAME" > /html/index.html
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
volumeMounts:
- name: shared
mountPath: /html
containers:
- name: quote-writer
image: luksa/quote-writer:0.1
imagePullPolicy: Always
volumeMounts:
- name: shared
mountPath: /var/local/output
- name: nginx
image: nginx:alpine
volumeMounts:
- name: shared
mountPath: /usr/share/nginx/html
readOnly: true
ports:
- name: http
containerPort: 80
readinessProbe:
failureThreshold: 1
httpGet:
port: 80
path: /quote
scheme: HTTP