-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
62 lines (62 loc) · 1.47 KB
/
deployment.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: geo-3d-otel
spec:
minReadySeconds: 3
revisionHistoryLimit: 5
progressDeadlineSeconds: 60
strategy:
rollingUpdate:
maxUnavailable: 0
type: RollingUpdate
selector:
matchLabels:
app: geo-3d-otel
template:
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9797"
labels:
app: geo-3d-otel
spec:
containers:
- name: geo-3d-oteld
image: geo3d-image
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8080
protocol: TCP
env:
- name: OTEL_SERVICE_NAME
value: "GoGeo3D"
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: "https://api.honeycomb.io:443"
- name: HONEYCOMB_TOKEN
valueFrom:
secretKeyRef:
name: hc-credentials
key: token
- name: OTEL_EXPORTER_OTLP_HEADERS
value: "x-honeycomb-team=$(HONEYCOMB_TOKEN)"
livenessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 5
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 5
timeoutSeconds: 5
resources:
limits:
cpu: 2
memory: 512Mi
requests:
cpu: 200m
memory: 64Mi