-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelloworld.yaml
65 lines (65 loc) · 1.67 KB
/
helloworld.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: helloworld-python
spec:
selector:
matchLabels:
app: helloworld-python
template:
metadata:
labels:
app: helloworld-python
spec:
tolerations:
nodeSelector:
terminationGracePeriodSeconds: 5
containers:
- name: helloworld-python
image: ghcr.io/splunk/helloworld-python:1.1
imagePullPolicy: Always
ports:
- containerPort: 9090
env:
- name: PORT
value: "8080"
- name: NODE_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: "http://$(NODE_IP):4317"
- name: OTEL_SERVICE_NAME
value: "helloworld-python"
- name: OTEL_RESOURCE_ATTRIBUTES
value: "deployment.environment=test"
- name: OTEL_PYTHON_DISABLED_INSTRUMENTATIONS
value: "click"
- name: OTEL_LOGS_EXPORTER
value: "otlp"
- name: OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED
value: "true"
- name: OTEL_PYTHON_LOG_LEVEL
value: "info"
- name: SPLUNK_PROFILER_ENABLED
value: "true"
resources:
requests:
cpu: 150m
memory: 2048Mi
limits:
cpu: 300m
memory: 4096Mi
---
apiVersion: v1
kind: Service
metadata:
name: helloworld-python
spec:
type: LoadBalancer
selector:
app: helloworld-python
ports:
- protocol: TCP
port: 81
targetPort: 8080