-
Notifications
You must be signed in to change notification settings - Fork 0
/
kubernetes-uat.yaml
97 lines (97 loc) · 2.5 KB
/
kubernetes-uat.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
apiVersion: apps/v1
kind: Deployment
metadata:
name: metis-social-lending-service
namespace: fintech-uat-metis-team
labels:
app: metis-social-lending-service
spec:
replicas: 1
selector:
matchLabels:
app: metis-social-lending-service
template:
metadata:
annotations:
prometheus.io/path: /actuator/prometheus
prometheus.io/port: "9090"
prometheus.io/scrape: "true"
labels:
app: metis-social-lending-service
deploysphere_health: "true"
spec:
imagePullSecrets:
- name: fintech-docker-secret
containers:
- name: metis-social-lending-service
image: metis-team-docker-registry.fintechchallenge.pl/metis-team/metis-social-lending-service:latest
imagePullPolicy: Always
args: ["--spring.profiles.active=uat"]
ports:
- name: api
containerPort: 8080
- name: management
containerPort: 9090
resources:
limits:
cpu: 400m
memory: 512Mi
requests:
cpu: 50m
memory: 64Mi
livenessProbe:
httpGet:
path: /actuator/health
port: 9090
initialDelaySeconds: 120
periodSeconds: 10
readinessProbe:
httpGet:
path: /actuator/health
port: 9090
initialDelaySeconds: 80
periodSeconds: 10
restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: metis-social-lending-service
namespace: fintech-uat-metis-team
labels:
app: metis-social-lending-service
visualize: "true"
prometheus_monitoring: "true"
spec:
ports:
- name: api
port: 8080
protocol: TCP
targetPort: api
selector:
app: metis-social-lending-service
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: metis-social-lending-service
namespace: fintech-uat-metis-team
spec:
entryPoints:
- websecure
routes:
- kind: Rule
match: Host(`metis-social-lending-service.metis-team.uat.fintechchallenge.pl`)
services:
- kind: Service
name: metis-social-lending-service
namespace: fintech-uat-metis-team
passHostHeader: true
port: 8080
scheme: http
tls:
options:
namespace: fintech-uat-metis-team
certResolver: hltech
domains:
- main: metis-social-lending-service.metis-team.uat.fintechchallenge.pl