-
Notifications
You must be signed in to change notification settings - Fork 0
/
kotlin-service.yaml
56 lines (55 loc) · 1.23 KB
/
kotlin-service.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
49
50
51
52
53
54
55
56
kind: Service
apiVersion: v1
metadata:
name: kotlin-service
spec:
selector:
app: kotlin-service
ports:
- protocol: TCP
port: 8080
nodePort: 30082
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kotlin-service
spec:
selector:
matchLabels:
app: kotlin-service
replicas: 2
template:
metadata:
labels:
app: kotlin-service
spec:
containers:
- name: kotlin-service
image: kotlin-service:latest
imagePullPolicy: Never
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /readiness
port: 8080
initialDelaySeconds: 30
timeoutSeconds: 2
periodSeconds: 3
failureThreshold: 5
livenessProbe:
httpGet:
path: /liveness
port: 8080
initialDelaySeconds: 30
timeoutSeconds: 2
periodSeconds: 8
failureThreshold: 5
startupProbe:
httpGet:
path: /startup
port: 8080
failureThreshold: 30
periodSeconds: 10