This guide will show you how to upgrade KubeDB operator. Here, we are going to show how to update the license and how to upgrade between two KubeDB versions.
KubeDB support updating license without requiring any re-installation or restart. KubeDB creates a Secret named
<helm release name>-license with the license file. You just need to update the Secret. The changes will propagate automatically to the operator and it will use the updated license going forward.
Follow the below instructions to update the license:
$ helm upgrade kubedb-enterprise -n kube-system appscode/kubedb-enterprise \ --reuse-values \ --set-file license=/path/to/new/license.txt
$ helm upgrade kubedb-enterprise appscode/kubedb-enterprise \ --reuse-values \ --set-file license=/path/to/new/license.txt
$ helm template kubedb-enterprise appscode/kubedb-enterprise \ --set-file license=/path/to/new/license.txt \ --show-only templates/license.yaml \ --no-hooks | kubectl apply -f -
KubeDB uses two different binaries for Community edition and Enterprise edition. So, it is not possible to upgrade between the Community edition and Enterprise edition without re-installation. However, it is possible to re-install KubeDB without losing the existing backup resources.
Follow the below instructions to re-install KubeDB:
If you are upgrading KubeDB to a patch release, please reapply the installation instructions. That will upgrade the operator pod to the new version and fix any RBAC issues.