-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathgeolocationapi.yaml
More file actions
74 lines (74 loc) · 1.7 KB
/
Copy pathgeolocationapi.yaml
File metadata and controls
74 lines (74 loc) · 1.7 KB
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
apiVersion: v1
kind: Namespace
metadata:
name: geolocationapi
labels:
name: geolocationapi
---
apiVersion: v1
kind: Service
metadata:
labels:
app: geolocationapi
name: geolocationapi
namespace: geolocationapi
spec:
ports:
-
name: http
port: 5254
protocol: TCP
targetPort: 5254
selector:
app: geolocationapi
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: geolocationapi
name: geolocationapi
namespace: geolocationapi
spec:
replicas: 2
selector:
matchLabels:
app: geolocationapi
strategy:
type: Recreate
template:
metadata:
labels:
app: geolocationapi
spec:
containers:
- image: "carmenpuccio/aws-otel-collector:latest"
name: aws-otel-collector
- image: "carmenpuccio/geolocationapi:latest"
name: geolocationapi
env:
- name: ASPNETCORE_ENVIRONMENT
value: Production
- name: ASPNETCORE_URLS
value: "http://+:5254"
- name: OTEL_OTLP_ENDPOINT
value: "http://localhost:4317"
- name: HealtcheckBaseURL
value: "http://localhost:5254/api/v1/geolocation/"
- name: HealtcheckIPToTest
value: "8.8.8.8"
ports:
- containerPort: 5254
name: geolocationapi
livenessProbe:
httpGet:
path: /hc
port: 5254
initialDelaySeconds: 5
periodSeconds: 30
readinessProbe:
httpGet:
path: /hc
port: 5254
initialDelaySeconds: 5
timeoutSeconds: 1