Upgrade the Collector for Kubernetes and other updates
Upgrade the Splunk Distribution of OpenTelemetry Collector for Kubernetes.
Upgrade the Collector for Kubernetes
To upgrade the Collector for Kubernetes run the following commands:
-
Use the flag
--reuse-valuesto keep the config values you’d already set while installing or using the Collector:BASHhelm upgrade splunk-otel-collector splunk-otel-collector-chart/splunk-otel-collector --reuse-values -
Use
--values config.yamlto override your previous configuration while upgrading:BASHhelm upgrade splunk-otel-collector --values config.yaml splunk-otel-collector-chart/splunk-otel-collector --reuse-values
Read more in the official Helm upgrade options documentation at https://helm.sh/docs/helm/helm_upgrade/#options .
Update the access token for the Collector for Kubernetes
To update the access token for your Collector for Kubernetes instance follow these steps:
-
Confirm the Helm release name and chart version. To do so, run:
BASHhelm list -f <Release_Name> -
Optionally, you can check your current access token:
BASHhelm get values <Release_Name> -
Deploy your new access token with Helm upgrade. This command will only update your access token, but will mantain your current Helm chart and Collector versions.
BASHhelm upgrade --reuse-values --version <Current_Chart_Version> --set splunkObservability.accessToken=<New_Access_Token> <Release_Name> splunk-otel-collector-chart/splunk-otel-collectorIf you want to use the latest Helm version instead of your current one, remove
'--version <Current_Chart_Version>'from the command. -
Verify the value of the updated access token:
BASHhelm get values <Release_Name> -
Restart the Collector’s daemonset and deployments:
-
If
agent.enabled=true, restart the Collector’s agent daemonset:BASHkubectl rollout restart daemonset <Release_Name>-agent -
If
clusterReceiver.enabled=true, restart the Collector’s cluster receiver deployment:BASHkubectl rollout restart deployment <Release_Name>-k8s-cluster-receiver -
If
gateway.enabled=true, restart the Collector’s gateway deployment:BASHkubectl rollout restart deployment <Release_Name>
-
-
Verify the status of your clusters’ pods:
BASHkubectl get pod -n <Namespace> | grep <Release_Name>