StackLight pods get stuck with the ‘NodeAffinity failed’ error¶
On a managed cluster, the StackLight Pods may get stuck with the
Pod predicate NodeAffinity failed error in the Pod status. The issue may
occur if the StackLight node label was added to one machine and
then removed from another one.
The issue does not affect the StackLight services, all required StackLight Pods migrate successfully except extra Pods that are created and stuck during Pod migration.
To apply the issue resolution, remove the stuck Pods:
kubectl --kubeconfig <managedClusterKubeconfig> -n stacklight delete pod <stuckPodName>