Blackbox-exporter - k8s 1.25 post-upgrade steps#
Introduction#
This procedure needs to be applied after a cluster upgrade in 1.25, due to an incompatibility between K8s 1.25 version and the Caascad current versions of blackbox-exporter.
In order to fix blackbox-exporter on a cluster that has been upgraded in 1.25, you need to force remove the old version of blackbox-exporter and install a more recent version.
Steps#
-
Remove
blackbox-exportersecrets:Wherekswitch ${ZONE} kubectl get secrets -n <namespace> | grep sh.helm.release.v1.blackbox-exporter.v # to identify the secrets names kubectl delete secrets sh.helm.release.v1.blackbox-exporter.v1 -n <namespace> kubectl delete secrets sh.helm.release.v1.blackbox-exporter.v2 -n <namespace> ...namespacecan be:monitoringfor cloud and infra zones;caascad-monitoringfor client zones.
-
Deleting the secrets, causes the uninstallation of
blackbox-exporterhelm chart. Check it is not present anymore:kswitch ${ZONE} helm list -a -n <namespace> | grep blackbox-exporter # to identify the chart nameIn case the helm chart is still present, force the uninstall:
helm uninstall blackbox-exporter -n <namespace> --force -
Install
blackbox-exporter:Wherecd ${ENVS_NG}/contexts/caascad trackbone apply -c <blackbox-exporter-configuration> -z ${ZONE}<blackbox-exporter-configuration>can be:blackbox-exporter-core-clientfor client zone;blackbox-exporter-core-cloud-caascadfor cloud zones;blackbox-exporter-core-cloud-clientfor cloud zones;blackbox-exporter-core-infra-caascadfor infra zones.
-
Check blackbox-exporter pod status and logs.