Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit e6b7398

Browse files
Draft
1 parent 9004d08 commit e6b7398

File tree

1 file changed

+43
-47
lines changed

1 file changed

+43
-47
lines changed

gdi/opentelemetry/collector-kubernetes/kubernetes-upgrade.rst

Lines changed: 43 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ Upgrade the Collector for Kubernetes and other updates
1313
Upgrade the Collector for Kubernetes
1414
=======================================
1515

16+
The installer script uses one of the supported package managers to install the Collector. When you update the Collector using the official packages, configuration files are never overridden. If you need to update the configuration after an update, edit them manually before backward compatibility is dropped.
17+
18+
.. :note:: For every configuration update use the default agent config as a reference.
19+
1620
To upgrade the Collector for Kubernetes run the following commands:
1721

1822
- Use the flag ``--reuse-values`` to keep the config values you'd already set while installing or using the Collector:
@@ -35,67 +39,67 @@ Read more in the official :new-page:`Helm upgrade options <https://helm.sh/docs/
3539
Upgrade guidelines
3640
=================================
3741

38-
The installer script uses one of the supported package managers to install the Collector.
39-
40-
When you update the Collector using the official packages, configuration files are never overridden. If you need to update the configuration after an update, edit them manually before backward compatibility is dropped.
41-
42-
.. :note::
43-
44-
For every configuration update use the default agent config as a reference.
45-
46-
Apply the following changes to the Collector configuration files for specific version upgrades. For more details refer to :new-page:`Helm chart upgrade guidelines <https://github.com/signalfx/splunk-otel-collector-chart/blob/main/UPGRADING.md>` in GitHub. For generic guidelines see :ref:`otel-upgrade-k8s-guidelines-generic`.
42+
Apply the following changes to the Collector configuration files for specific version upgrades. For more details refer to :new-page:`Helm chart upgrade guidelines <https://github.com/signalfx/splunk-otel-collector-chart/blob/main/UPGRADING.md>` in GitHub.
4743

4844
From 0.113.0 to 0.116.0
4945
---------------------------------------
5046

51-
This guide provides steps for new users, transitioning users, and those maintaining previous operator CRD configurations:
47+
Custom resource definition (CRD) configuration has been modified.
5248

53-
New users: No migration for CRDs is required.
54-
Previous users: Migration may be needed if using operator.enabled=true.
55-
CRD deployment has evolved over chart versions:
56-
57-
Before 0.110.0: CRDs were deployed via a crds/ directory (upstream default).
58-
0.110.0 to 1.113.0: CRDs were deployed using Helm templates (upstream default), which had reported issues.
59-
0.116.0 and later: Users must now explicitly configure their preferred CRD deployment method or deploy the CRDs manually to avoid potential issues. Users can deploy CRDs via a crds/ directory again by enabling a newly added value.
49+
* Before v0.110.0 CRDs were deployed via a ``crds/`` directory (upstream default).
50+
* From v0.110.0 to v1.113.0 CRDs were deployed using Helm templates (upstream default), which had reported issues.
51+
* From v0.116.0 and higher, you must explicitly configure your preferred CRD deployment method or deploy the CRDs manually to avoid potential issues. You can deploy CRDs via a ``crds/`` directory again by enabling a newly added value.
6052

6153
New users
6254
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6355

64-
New users are advised to deploy CRDs via the crds/ directory. For a fresh installation, use the following Helm values:
56+
If you're a new user deploy CRDs via the ``crds/`` directory. For a fresh installation use the following Helm values:
6557

66-
.. code-block:: yaml
58+
.. code-block:: yaml
6759
6860
operatorcrds:
6961
install: true
7062
operator:
7163
enabled: true
7264
73-
To install the chart:
65+
To install the chart run:
66+
67+
.. code-block:: bash
7468
75-
helm install <release-name> splunk-otel-collector-chart/splunk-otel-collector --set operatorcrds.install=true,operator.enabled=true <extra_args>
69+
helm install <release-name> splunk-otel-collector-chart/splunk-otel-collector --set operatorcrds.install=true,operator. enabled=true <extra_args>
7670
7771
Current users
7872
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7973

80-
If you're using chart versions 0.110.0 to 1.113.0, CRDs are likely deployed via Helm templates. To migrate to the recommended crds/ directory deployment:
74+
You might need to migrate if using ``operator.enabled=true``.
75+
76+
If you're using versions 0.110.0 to 1.113.0, CRDs are likely deployed via Helm templates. To migrate to the recommended ``crds/`` directory deployment:
77+
78+
#. Delete the existing chart running
8179

82-
Step 1: Delete the Existing Chart
83-
Remove the chart to prepare for a fresh installation:
80+
.. code-block:: bash
81+
82+
helm delete <release-name>
83+
84+
#. Verify if the following CRDs are present and delete them if necessary:
85+
86+
.. code-block:: bash
87+
88+
kubectl get crds | grep opentelemetry
89+
kubectl delete crd opentelemetrycollectors.opentelemetry.io
90+
kubectl delete crd opampbridges.opentelemetry.io
91+
kubectl delete crd instrumentations.opentelemetry.io
8492
85-
helm delete <release-name>
86-
Step 2: Verify or Remove Existing CRDs
87-
Check if the following CRDs are present and delete them if necessary:
93+
#. Reinstall the chart with the updated configuration:
8894

89-
kubectl get crds | grep opentelemetry
90-
kubectl delete crd opentelemetrycollectors.opentelemetry.io
91-
kubectl delete crd opampbridges.opentelemetry.io
92-
kubectl delete crd instrumentations.opentelemetry.io
93-
Step 3: Reinstall with Recommended Values
94-
Reinstall the chart with the updated configuration:
95+
.. code-block:: bash
96+
97+
helm install <release-name> splunk-otel-collector --set operatorcrds.install=true,operator.enabled=true <extra_args>
98+
99+
Current users maintaining legacy templates
100+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
95101

96-
helm install <release-name> splunk-otel-collector --set operatorcrds.install=true,operator.enabled=true <extra_args>
97-
Previous Users (Maintaining Legacy Helm Templates)
98-
If you're using chart versions 0.110.0 to 1.113.0 and prefer to continue deploying CRDs via Helm templates (not recommended), you can do so with the following values:
102+
If you're using chart versions 0.110.0 to 1.113.0 and prefer to continue deploying CRDs via Helm templates (not recommended), use the following values:
99103

100104
.. code-block:: yaml
101105
@@ -105,20 +109,14 @@ If you're using chart versions 0.110.0 to 1.113.0 and prefer to continue deployi
105109
crds:
106110
create: true
107111
108-
.. caution:: This method may cause race conditions during installation or upgrades
112+
.. caution:: This method might cause race conditions during installation or upgrades.
109113

110114
From 0.105.5 to 0.108.0
111115
---------------------------------------
112116

113-
We've simplified the Helm chart configuration for operator auto-instrumentation. The values previously under .Values.operator.instrumentation.spec.* have been moved to .Values.instrumentation.*.
114-
115-
No Action Needed: If you have no customizations under .Values.operator.instrumentation.spec.*, no migration is required.
116-
Action Required: Continuing to use the old values path will result in a Helm install or upgrade error, blocking the process.
117-
Migration Steps:
117+
.. note:: If you have no customizations under ``.Values.operator.instrumentation.spec.*`` no migration is required.
118118

119-
Find any references to .Values.operator.instrumentation.spec.* in your Helm values with custom values.
120-
Migrate them from .Values.operator.instrumentation.spec.* to .Values.instrumentation.*.
121-
Example Migration:
119+
The Helm chart configuration for operator auto-instrumentation has been simplified, and the values previously under ``.Values.operator.instrumentation.spec.*`` have been moved to ``.Values.instrumentation.*``.
122120

123121
The updated path looks like this:
124122

@@ -138,8 +136,6 @@ The deprecated path was:
138136
endpoint: XXX
139137
...
140138
141-
.. _otel-upgrade-k8s-guidelines-generic:
142-
143139
.. raw:: html
144140

145141
<div class="include-start" id="collector-upgrade.rst"></div>

0 commit comments

Comments
 (0)