-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecho-server.yaml
55 lines (53 loc) · 1.06 KB
/
echo-server.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
---
apiVersion: v1
kind: Namespace
metadata:
name: frontdoor-ns
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontdoor
namespace: frontdoor-ns
spec:
selector:
matchLabels:
app: frontdoor
replicas: 1
template:
metadata:
labels:
app: frontdoor
spec:
containers:
- image: liamford/frontdoor:latest
env:
- name: SPRING_PROFILES_ACTIVE
value: "prod"
name: frontdoor
readinessProbe:
httpGet:
path: /api/payments/v1/actuator/health
port: 8080
livenessProbe:
httpGet:
path: /api/payments/v1/actuator/health
port: 8080
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: frontdoor-service
namespace: frontdoor-ns
annotations:
service.beta.kubernetes.io/aws-load-balancer-type: nlb
service.beta.kubernetes.io/aws-load-balancer-internal: "true"
spec:
ports:
- port: 8080
protocol: TCP
type: LoadBalancer
selector:
app: frontdoor