-
Notifications
You must be signed in to change notification settings - Fork 377
Expand file tree
/
Copy pathsts.demo-parallel.yaml
More file actions
41 lines (41 loc) · 850 Bytes
/
Copy pathsts.demo-parallel.yaml
File metadata and controls
41 lines (41 loc) · 850 Bytes
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
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: demo-parallel
spec:
podManagementPolicy: Parallel
serviceName: demo-parallel
replicas: 3
selector:
matchLabels:
app: demo-parallel
template:
metadata:
labels:
app: demo-parallel
spec:
containers:
- name: demo-parallel
image: busybox
command:
- sh
- -c
- 'touch /tmp/ready; sleep infinity'
readinessProbe:
periodSeconds: 1
failureThreshold: 1
exec:
command:
- sh
- -c
- 'test -f /tmp/ready || (echo "not ready, because /tmp/ready is missing" && false)'
terminationGracePeriodSeconds: 1
---
apiVersion: v1
kind: Service
metadata:
name: demo-parallel
spec:
clusterIP: None
selector:
app: demo-parallel