Chapter 5. Upgrading sites
Upgrade Skupper sites to the latest release to ensure access to the most recent security updates and new features.
5.1. Upgrading Kubernetes sites Copy linkLink copied to clipboard!
Upgrade the Skupper sites running on your Kubernetes or OpenShift clusters, using the same method you used to install them.
Prerequisites
- A Kubernetes cluster with a Skupper site already installed.
Procedure
Note whether the site was installed using the operator or YAML. You will need to use the same method to upgrade the site.
Use the following command to determine whether the site was installed using the operator or YAML:
kubectl get deployment skupper-controller -n <namespace> -o jsonpath='{.metadata.labels}'This command returns a list of labels for the Skupper controller deployment. If the output includes
ClusterServiceVersion, the site was installed using the operator. If there is no output, the site was installed using YAML.The namespace is the namespace where the Skupper controller is installed, for example
skupperoropenshift-operators.Note whether Skupper is installed in a namespace or cluster-wide. You will need to use the same method to upgrade the site.
Use the following command to determine whether Skupper is installed in a namespace or cluster-wide:
kubectl get deployment skupper-controller -n <namespace> -o jsonpath='{.spec.template.spec.containers[0].env}'This command returns a list of environment variables for the Skupper controller deployment. If the output includes
WATCH_NAMESPACE, the site is installed in a namespace. If there is no output, the site is installed cluster-wide. The namespace is the namespace where the Skupper controller is installed, for exampleskupperoropenshift-operators.- If the site was installed using YAML, apply the latest YAML for either a namespace or cluster-wide installation. See Installing the CRDs and controller using YAML for instructions on how to install Red Hat Service Interconnect using YAML.
- If the site was installed using the operator, upgrade the operator to the latest version for either a namespace or cluster-wide installation. See Installing the operators for instructions on how to install Red Hat Service Interconnect using the operator.
5.2. Upgrading local system sites Copy linkLink copied to clipboard!
Upgrade the Skupper sites running as Docker, Podman, or systemd services on your local systems.
Prerequisites
- The latest version of the Skupper CLI is installed.
Procedure
Check if the Skupper controller is running, for example:
podman ps | grep skupper-controller docker ps | grep skupper-controllerIf the Skupper controller is not running, you can upgrade the site by running the reload command:
skupper system reloadThis command refreshes the site definition and pulls the latest images associated with the CLI version.
If the Skupper controller is running, you must upgrade the controller manually.
Currently,
skupper system uninstallprotects active sites by refusing to run if a site is detected. However, if you need to force an update to the controller itself (to pick up a new controller version) without deleting your sites, follow this manual workaround.Stop and remove the controller container. The container is named
<user>-skupper-controller.Podman
podman rm -f <user>-skupper-controllerDocker
docker rm -f <user>-skupper-controllerNoteReplace
<user>with the specific username under which Skupper is running.Re-install the controller.
Run the install command to recreate the controller using the new CLI version.
skupper system install- Verify the controller is recreated with the updated version.