New airgap package
Contact Getvisibility Support to receive a link to latest airgap package. The link expires in 7 days, so make sure to download the package before that.
Retrieve current chart configuration
Before upgrading gv-essentials/gv-platform you need to retrieve current configuration using helm.
To retrieve gv-essentials configuration run
helm get values gv-essentials
Default configuration output:
To retrieve gv-platform configuration run
helm get values gv-platform
Default configuration output:
Prepare update and import new images
Upack the airgap package and import new images
sudo su - tar -xf gv-platform-$VERSION.tar # (replace $VERSION according to downloaded file) mkdir /tmp/import for f in images/*.gz; do IMG=$(basename "${f}" .gz); gunzip -c "${f}" > /tmp/import/"${IMG}"; done for f in /tmp/import/*.tar; do ctr -n=k8s.io images import "${f}"; done
Upgrade gv-essentials replacing the values below with the values retrieved in the previous step and $VERSION according to downloaded update:
helm upgrade --install gv-essentials charts/gv-essentials-$VERSION.tgz --wait \ --timeout=10m0s --kubeconfig /etc/rancher/k3s/k3s.yaml \ --set backup.hour=1 \ # REPLACE --set eck-operator.enabled=true \ # VALUES HERE --set updateclusterid.enabled=false \ # WITH --set keycloak.url=IPADDRESS/DNS/FQDN # RETRIEVED ONES
Upgrade gv-platform replacing the values below with the values retrieved in the previous step and $VERSION according to downloaded update:
helm upgrade --install gv-platform charts/gv-platform-$VERSION.tgz --wait \ --timeout=10m0s --kubeconfig /etc/rancher/k3s/k3s.yaml \ --set-string clusterLabels.environment=prod \ # REPLACE --set-string clusterLabels.cluster_reseller=$RESELLER \ # VALUES HERE --set-string clusterLabels.cluster_name=mycluster \ # WITH --set-string clusterLabels.product=$PRODUCT # RETRIEVED ONES
Upgrade monitoring charts
Optionally you can upgrade monitoring packages:
helm upgrade --install rancher-monitoring-crd charts/rancher-monitoring-crd-$VERSION.tgz \ --wait \ --kubeconfig /etc/rancher/k3s/k3s.yaml \ --namespace=cattle-monitoring-system \ --create-namespace helm upgrade --install rancher-monitoring charts/rancher-monitoring-$VERSION.tgz \ --wait \ --kubeconfig /etc/rancher/k3s/k3s.yaml \ --namespace=cattle-monitoring-system \ --set k3sServer.enabled=true \ --set k3sControllerManager.enabled=true \ --set k3sScheduler.enabled=true \ --set k3sProxy.enabled=true \ --set prometheus.retention=5 \ --set global.grafana_ingress.enabled=true