Skip to content

Commit

Permalink
removing not needed env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
pszkamruk-splunk committed Nov 13, 2024
1 parent ec44b3c commit 556fad6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,7 @@ k8sattributes/clusterReceiver:
- k8s.node.name
- k8s.pod.name
- k8s.pod.uid
- container.id
- container.image.name
- container.image.tag
- k8s.pod.ip
annotations:
- key: splunk.com/sourcetype
from: pod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,6 @@ spec:
image: public.ecr.aws/amazonlinux/amazonlinux:latest
imagePullPolicy: IfNotPresent
command: ["bash", "-c", "/splunk-scripts/init-eks-fargate-cluster-receiver.sh"]
env:
- name: K8S_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: K8S_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
volumeMounts:
- name: init-eks-fargate-cluster-receiver-script
mountPath: /splunk-scripts
Expand Down Expand Up @@ -132,27 +123,6 @@ spec:
env:
- name: SPLUNK_MEMORY_TOTAL_MIB
value: "{{ include "splunk-otel-collector.convertMemToMib" $clusterReceiver.resources.limits.memory | int64 }}"
- name: K8S_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: K8S_POD_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
- name: K8S_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: K8S_POD_UID
valueFrom:
fieldRef:
fieldPath: metadata.uid
- name: K8S_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
{{- if (eq (include "splunk-otel-collector.splunkO11yEnabled" .) "true") }}
- name: SPLUNK_OBSERVABILITY_ACCESS_TOKEN
valueFrom:
Expand Down

0 comments on commit 556fad6

Please sign in to comment.