The module lifecycle stage: Generally available version
The module has requirements for installation
Why can’t upmeter-probe-* pods be placed in the cluster, why are some pods constantly deleted?
The module implements tests for the availability of the functionality of some Kubernetes controllers.
The tests are performed by creating and deleting temporary pods.
upmeter-probe-scheduler objects implement a test for the functionality of placing pods on nodes.
As part of the test, a Pod is created and placed on a node. Then this pod is deleted.
upmeter-probe-controller-manager objects implement a test for the health of kube-controller-manager.
StatefulSet is created for the test, and it is checked that this object has spawned a Pod (since the actual placement of the pod is not required and is checked as part of another test, a Pod is created that is guaranteed not to be placed, i.e. is in the Pending state). Deletes the StatefulSet, checks that the Pod it spawned has been deleted.
smoke-mini objects implement network connectivity testing between nodes.
Five StatefulSet with one replica are deployed for testing. The test checks connectivity between smoke-mini Pods as well as network connectivity with upmeter-agent Pods running on master nodes.
Once per minute, one of the smoke-mini Pods is migrated to another node.
How to roll the module back to the version that stored data in SQLite?
The current version keeps its data in a new volume (prompp-upmeter-0) and converts the history from the old volume (data-upmeter-0) on upgrade. The old volume is deleted about a minute after the new server becomes ready; until then a rollback restores the previous version with its history.
A rollback with a storage class configured needs two manual steps after the previous version is installed, since its StatefulSet cannot be updated in place:
kubectl -n d8-upmeter delete sts upmeter --cascade=orphan
kubectl -n d8-upmeter delete pod upmeter-0If the old volume has already been deleted, the previous version starts with an empty history.
If you upgrade again after such a rollback, the history the previous version collected in between is not converted. To convert it, before upgrading remove the annotation from the old volume (kubectl -n d8-upmeter annotate pvc data-upmeter-0 upmeter.deckhouse.io/migrated-) and the file prompp-migration.json from the new one (or delete the claim prompp-upmeter-0). The data the current version collected before the rollback is then partially lost.