-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathprobes_startup.yml
50 lines (50 loc) · 958 Bytes
/
probes_startup.yml
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
49
50
apiVersion: apps/v1
kind: Deployment
metadata:
name: startup
labels:
app: startup
spec:
replicas: 10
selector:
matchLabels:
app: startup
template:
metadata:
labels:
app: startup
svc: example
spec:
containers:
- name: main
image: sikalabs/slu:v0.80.0
command:
- /bin/sh
- -c
args:
- slu sleep random --min 0 --max 30000 --verbose && slu example-server -p 8000
startupProbe:
httpGet:
path: /
port: 8000
ports:
- containerPort: 8000
resources:
requests:
memory: 20Mi
cpu: 20m
limits:
memory: 40Mi
cpu: 50m
---
apiVersion: v1
kind: Service
metadata:
name: startup
spec:
type: ClusterIP
selector:
app: startup
ports:
- port: 80
targetPort: 8000