forked from rasulov-emirlan/accounter-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kuber.yaml
52 lines (51 loc) · 1.02 KB
/
kuber.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
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: accounter-backend
namespace: accounter
spec:
replicas: 1
selector:
matchLabels:
app: accounter-backend
template:
metadata:
labels:
app: accounter-backend
spec:
containers:
- name: accounter-backend
image: accounter-backend:latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
livenessProbe:
httpGet:
path: /health/ping
port: 8080
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 15
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /health/ready
port: 8080
scheme: HTTP
initialDelaySeconds: 5
timeoutSeconds: 1
---
apiVersion: v1
kind: Service
metadata:
name: accounter-backend
namespace: accounter
spec:
type: NodePort
selector:
app: accounter-backend
ports:
- port: 8080
targetPort: 8080
nodePort: 30001