Upgrading
Standard upgrade
To upgrade Cosmonic Control to a new chart version, use helm upgrade with the same values file used during installation:
# Check the currently installed release and chart version
helm list -n cosmonic-system
# Upgrade to a new chart version
helm upgrade cosmonic-control oci://ghcr.io/cosmonic/cosmonic-control \
--version 0.3.0 \
--namespace cosmonic-system \
-f cosmonic-control-values.yamlUpgrade the HostGroup release separately:
helm upgrade hostgroup oci://ghcr.io/cosmonic/cosmonic-control-hostgroup \
--version 0.3.0 \
--namespace cosmonic-systemWait for the rollout to complete before considering the upgrade done:
kubectl rollout status deploy -l app.kubernetes.io/instance=cosmonic-control -n cosmonic-system
kubectl rollout status deploy -l app.kubernetes.io/instance=hostgroup -n cosmonic-systemChart versions do not track appVersion one-to-one. A single chart version (e.g. 0.3.0) may ship updated appVersion values as underlying Cosmonic Control images are patched. Check the current appVersion before upgrading:
helm show chart oci://ghcr.io/cosmonic/cosmonic-control --version 0.3.0Rolling back
Rolling back the Helm release
To roll back to the previous release after a failed upgrade:
helm rollback cosmonic-control -n cosmonic-system
helm rollback hostgroup -n cosmonic-systemhelm rollback restores the Helm release to its previous revision. Check the rollback status:
kubectl rollout status deploy -l app.kubernetes.io/instance=cosmonic-control -n cosmonic-system
kubectl rollout status deploy -l app.kubernetes.io/instance=hostgroup -n cosmonic-systemCRD rollback caveat
Helm does not downgrade CRDs on rollback — by design, to prevent accidental data loss. If the failed upgrade included CRD changes, rolling back the Helm release will leave the newer CRD versions in place.
If you need to roll CRDs back to a previous version, apply the old CRD manifests manually:
# Pull CRDs from the target (older) chart version
helm show crds oci://ghcr.io/cosmonic/cosmonic-control --version <previous-version> | kubectl apply -f -Verify the CRDs were restored before proceeding:
kubectl get crd | grep -E 'cosmonic|wasmcloud'Upgrading from v0.2.x
Version 0.3.0 introduced changes to the Cosmonic Control CRDs. Helm does not upgrade existing CRDs automatically (by design, to avoid accidental data loss from CRD changes). You must apply the updated CRDs manually before running helm upgrade.
Export the new CRDs from the chart and apply them:
helm show crds oci://ghcr.io/cosmonic/cosmonic-control --version 0.3.0 | kubectl apply -f -Review the output to confirm the CRDs were updated, then proceed with the standard upgrade:
helm upgrade cosmonic-control oci://ghcr.io/cosmonic/cosmonic-control \
--version 0.3.0 \
--namespace cosmonic-system \
-f cosmonic-control-values.yaml