-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcontrol-deployment.yaml
More file actions
92 lines (90 loc) · 2.13 KB
/
Copy pathcontrol-deployment.yaml
File metadata and controls
92 lines (90 loc) · 2.13 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
apiVersion: apps/v1
kind: Deployment
metadata:
name: control-deployment
namespace: spaceborscht
labels:
app: control
spec:
replicas: 2
selector:
matchLabels:
app: control
template:
metadata:
labels:
app: control
annotations:
prometheus.io/scrape: "true"
prometheus.io/path: "/metrics"
prometheus.io/port: "3000"
spec:
containers:
- name: control
image: cr.yandex/crpppobvo0dedl805s42/spaceborscht/control:v1
ports:
- name: metrics-port
containerPort: 3000
env:
- name: NODE_ENV
value: "production"
- name: PORT
value: "3000"
- name: OTEL_SERVICE_NAME
value: "spaceborscht-control"
- name: NODE_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: "http://$(NODE_IP):4318/v1/traces"
- name: ENGINE_URL
value: "http://engine-service:3001"
- name: TELEMETRY_URL
value: "http://telemetry-service:3002"
- name: COMMS_URL
value: "http://comms-service:3003"
- name: MISSION_DEFAULT_STEPS
value: "20"
- name: STEP_INTERVAL_MS
value: "1000"
- name: TELEMETRY_FREQ
value: "3"
livenessProbe:
httpGet:
path: /health
port: 3000
initialDelaySeconds: 30
periodSeconds: 10
readinessProbe:
httpGet:
path: /health
port: 3000
initialDelaySeconds: 5
periodSeconds: 5
resources:
requests:
memory: "128Mi"
cpu: "100m"
limits:
memory: "256Mi"
cpu: "200m"
---
apiVersion: v1
kind: Service
metadata:
name: control-service
namespace: spaceborscht
annotations:
prometheus.io/scrape: "true"
prometheus.io/path: "/metrics"
prometheus.io/port: "3000"
spec:
selector:
app: control
ports:
- name: metrics-port
protocol: TCP
port: 3000
targetPort: 3000
type: ClusterIP