diff --git a/_includes/collector-upgrade.rst b/_includes/collector-upgrade.rst index 8c6b48476..d27680912 100644 --- a/_includes/collector-upgrade.rst +++ b/_includes/collector-upgrade.rst @@ -1,21 +1,15 @@ -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. - General guidelines ================================= -Apply the following changes to the Collector configuration files for specific version upgrades. - -.. :important:: +.. :note:: For every configuration update use the default agent config as a reference. +Apply the following changes to the Collector configuration files for specific version upgrades. For more details refer to the :new-page:`Upgrade guidelines ` in GitHub. + From 0.96.1 to 0.97.0 ------------------------------------ - - .. raw:: html
@@ -26,9 +20,6 @@ From 0.96.1 to 0.97.0
- - - From 0.68.0 to 0.69.0 ------------------------------------ diff --git a/gdi/opentelemetry/collector-kubernetes/kubernetes-upgrade.rst b/gdi/opentelemetry/collector-kubernetes/kubernetes-upgrade.rst index f59199680..7bc343908 100644 --- a/gdi/opentelemetry/collector-kubernetes/kubernetes-upgrade.rst +++ b/gdi/opentelemetry/collector-kubernetes/kubernetes-upgrade.rst @@ -6,28 +6,17 @@ Upgrade the Collector for Kubernetes and other updates ********************************************************************************* .. meta:: - :description: Upgrade the Splunk Distribution of OpenTelemetry Collector for Kubernetes. - - - -.. raw:: html - -
- -.. include:: /_includes/collector-upgrade.rst - -.. raw:: html - -
- - - + :description: Upgrade the Splunk Distribution of the OpenTelemetry Collector for Kubernetes. .. _otel-upgrade-k8s: Upgrade the Collector for Kubernetes ======================================= +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. + +.. :note:: For every configuration update use the default agent config as a reference. + To upgrade the Collector for Kubernetes run the following commands: - Use the flag ``--reuse-values`` to keep the config values you'd already set while installing or using the Collector: @@ -43,7 +32,119 @@ To upgrade the Collector for Kubernetes run the following commands: helm 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 :new-page:`https://helm.sh/docs/helm/helm_upgrade/#options `. +Read more in the official :new-page:`Helm upgrade options ` documentation. + +.. _otel-upgrade-k8s-guidelines: + +Upgrade guidelines +================================= + +Apply the following changes to the Collector configuration files for specific version upgrades. For more details refer to :new-page:`Helm chart upgrade guidelines ` in GitHub. + +From 0.113.0 to 0.116.0 +--------------------------------------- + +Custom resource definition (CRD) configuration has been modified. + +* Before v0.110.0 CRDs were deployed via a ``crds/`` directory (upstream default). +* From v0.110.0 to v1.113.0 CRDs were deployed using Helm templates (upstream default), which had reported issues. +* 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. + +New users +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +If you're a new user deploy CRDs via the ``crds/`` directory. For a fresh installation use the following Helm values: + +.. code-block:: yaml + + operatorcrds: + install: true + operator: + enabled: true + +To install the chart run: + +.. code-block:: bash + + helm install splunk-otel-collector-chart/splunk-otel-collector --set operatorcrds.install=true,operator. enabled=true + +Current users +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +You might need to migrate if using ``operator.enabled=true``. + +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: + +1. Delete the existing chart running + + .. code-block:: bash + + helm delete + +2. Verify if the following CRDs are present and delete them if necessary: + + .. code-block:: bash + + kubectl get crds | grep opentelemetry + kubectl delete crd opentelemetrycollectors.opentelemetry.io + kubectl delete crd opampbridges.opentelemetry.io + kubectl delete crd instrumentations.opentelemetry.io + +3. Reinstall the chart with the updated configuration: + + .. code-block:: bash + + helm install splunk-otel-collector --set operatorcrds.install=true,operator.enabled=true + +Current users maintaining legacy templates +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +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: + +.. code-block:: yaml + + operator: + enabled: true + operator: + crds: + create: true + +.. caution:: This method might cause race conditions during installation or upgrades. + +From 0.105.5 to 0.108.0 +--------------------------------------- + +.. note:: If you have no customizations under ``.Values.operator.instrumentation.spec.*`` no migration is required. + +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.*``. + +The updated path looks like this: + +.. code-block:: yaml + + instrumentation: + endpoint: XXX + ... + +The deprecated path was: + +.. code-block:: yaml + + operator: + instrumentation: + spec: + endpoint: XXX + ... + +.. raw:: html + +
+ +.. include:: /_includes/collector-upgrade.rst + +.. raw:: html + +
.. _otel-upgrade-k8s-access-token: diff --git a/gdi/opentelemetry/collector-linux/linux-upgrade.rst b/gdi/opentelemetry/collector-linux/linux-upgrade.rst index e27434dc5..3100aeaea 100644 --- a/gdi/opentelemetry/collector-linux/linux-upgrade.rst +++ b/gdi/opentelemetry/collector-linux/linux-upgrade.rst @@ -8,7 +8,9 @@ Upgrade the Collector for Linux .. meta:: :description: Upgrade the Splunk Distribution of OpenTelemetry Collector for Linux. +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. .. raw:: html diff --git a/gdi/opentelemetry/collector-windows/windows-upgrade.rst b/gdi/opentelemetry/collector-windows/windows-upgrade.rst index c943fe488..132699241 100644 --- a/gdi/opentelemetry/collector-windows/windows-upgrade.rst +++ b/gdi/opentelemetry/collector-windows/windows-upgrade.rst @@ -8,7 +8,9 @@ Upgrade the Collector for Windows .. meta:: :description: Upgrade the Splunk Distribution of OpenTelemetry Collector. +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. .. raw:: html