Problem

Daemon Set is not able to run the desired number of pods.

Solution

Alert KubeDaemonSetRollOutStuck is showing that one of the Daemon sets is having trouble to run the desired number of pods.

Check all daemon sets in cluster.

$ oc get daemonset --all-namespaces
Example Session

*** above screenshot shows the Ready and Available Pods are not the same with the Desired number of Pods.

Check the pods in the affected namespaces(s)

$ oc project <project_name>

$  oc get pods -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.spec.nodeName}{"\t"}{range .status.conditions[?(.type == "Ready")]}{.status}{"\t"}{.type}{"\n"}{end}{end}'
Example Session

*** the output shows the status of individual pods. False status means the pod is not available.

Delete the unavailable pod.

$ oc delete pod <pod_id> -n <project>

*** this will spawn a new pod

Verify the namespaces again

$ oc get daemonset --all-namespaces