-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelloworld.yaml
61 lines (61 loc) · 1.42 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
apiVersion: apps/v1
kind: Deployment
metadata:
name: helloworld
spec:
selector:
matchLabels:
app: helloworld
template:
metadata:
labels:
app: helloworld
# annotations:
# splunk.com/exclude: "true"
spec:
tolerations:
nodeSelector:
terminationGracePeriodSeconds: 5
containers:
- name: helloworld
image: ghcr.io/splunk/helloworld-nodejs:1.0
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):4318"
- name: OTEL_SERVICE_NAME
value: "helloworld"
- name: SPLUNK_METRICS_ENABLED
value: "true"
- name: SPLUNK_PROFILER_ENABLED
value: "true"
- name: SPLUNK_PROFILER_MEMORY_ENABLED
value: "true"
resources:
requests:
cpu: 150m
memory: 2048Mi
limits:
cpu: 300m
memory: 4096Mi
---
apiVersion: v1
kind: Service
metadata:
name: helloworld
spec:
type: LoadBalancer
selector:
app: helloworld
ports:
- protocol: TCP
port: 81
targetPort: 8080