Versions (relevant - OpenSearch/Dashboard/Server OS/Browser): 3.7.0
Describe the issue: k8s operator 2.8.0 still running after operator 3.0.0 deployment in legacy mode.
Do we have to scale 2.8.0 operator to “0” before ?
Versions (relevant - OpenSearch/Dashboard/Server OS/Browser): 3.7.0
Describe the issue: k8s operator 2.8.0 still running after operator 3.0.0 deployment in legacy mode.
Do we have to scale 2.8.0 operator to “0” before ?
@lmo-34 I’ve done some testing with the upgrade, and I had no issues. The original 2.8.0 has been terminated, and 3.0.0 has successfully started.
I’ve used the command below to upgrade my OS Operator.
helm upgrade opensearch-operator opensearch-operator/opensearch-operator --set webhook.enabled=false --version 3.0.14
Do you still have 2 opensearch operator pods running? What do you see in the 2.8.0 logs?
Hi Pablo,
For the operator installation or upgrade, we run the helm template command, followed by kubectl apply.
The release name is os. However, the Kubernetes deployment name differs between versions:
os-opensearch-operatoros-opensearch-operator-controller-managerCould you please confirm the deployment names used in versions 2.8.0 and 3.0.14?
Regards,
Laurent
that difference is probably it, helm upgrade would clean up the old deployment but template + apply wont. apply never deletes a renamed resource, so the 2.8.0 deployment stays until you remove it yourself.
We will continue the 3.0.14 upgrade tests, either by setting the 2.8.0 scale to 0 or by using the “fullname” variable if we can overwrite 2.8.0 objects in namespace operator.
Thanks for the discussion.
@lmo-34 I’ve tested the OpenSearch Operator upgrade from 2.8.0 to 3.0.14 with ArgoCD.
ArgoCD is using the same approach as you did: helm template + kubectl apply.
I’ve got the same state as you did. I’ve just deleted the old OpenSearch Operator deployment with the Prune option in ArgoCD sync. The OpenSearch Operator 3.0.14 has legacyAPIs enabled by default to run the migration of all objects from opensearch.opster.io to opensearch.org.