-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhello-variants-service.yaml
62 lines (62 loc) · 1.34 KB
/
hello-variants-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
57
58
59
60
61
62
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-variants-service
labels:
app: hello-variants-service
spec:
replicas: 1
template:
metadata:
name: hello-variants-service
labels:
app: hello-variants-service
spec:
containers:
- name: hello-variants-service
image: daggerok/k8s-ingress-explained-hello-variants-service
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8001
protocol: TCP
name: "webflux"
- containerPort: 8002
protocol: TCP
name: "r-socket"
readinessProbe:
httpGet:
port: 8001
path: /actuator/health
livenessProbe:
httpGet:
port: 8001
path: /actuator/health
restartPolicy: Always
selector:
matchLabels:
app: hello-variants-service
---
apiVersion: v1
kind: Service
metadata:
name: hello-variants-service
spec:
selector:
app: hello-variants-service
sessionAffinity: None
ports:
- port: 8001
protocol: TCP
name: "webflux"
targetPort: 8001
nodePort: 30001
- port: 8002
protocol: TCP
name: "r-socket"
targetPort: 8002
nodePort: 30002
#type: LoadBalancer
#type: ClusterIP
type: NodePort
---