Node-exporter - k8s 1.25 post-upgrade steps#
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 node-exporter.
In order to fix node-exporter on a cluster that has been upgraded in 1.25, you need to force remove the old version of node-exporter and install a more recent version.
Steps#
-
Remove
node-exportersecrets:Wherekswitch ${ZONE} kubectl get secrets -n <namespace> | grep sh.helm.release.v1.caascad-node-exporter # to identify the secrets names kubectl delete secrets sh.helm.release.v1.caascad-node-exporter.v1 -n <namespace> kubectl delete secrets sh.helm.release.v1.caascad-node-exporter.v2 -n <namespace> ...namespacecan be:monitoringfor cloud and infra zones;caascad-monitoringfor client zones.
-
Sectets deletion causes the uninstall of
node-exporterhelm chart. If it's not the case, force te removal:kswitch ${ZONE} helm list -a -n <namespace> | grep node-exporter # to identify the chart name helm uninstall caascad-node-exporter -n <namespace> --force -
Install
node-exporterhelm chart:cd ${ENVS_NG}/contexts/caascad trackbone apply -c node-exporter -z ${ZONE} -
Check node-exporter pod status and logs.