The collection includes a variety of Ansible content to help automate the management of applications in Kubernetes and OpenShift clusters, as well as the provisioning and maintenance of clusters themselves.
Other
214
stars
133
forks
source link
kubernetes.core.k8s module fails to create DaemonSet when desired number of scheduled Pods is 0. #755
kubernetes.core.k8s module fails to create DaemonSet when desired number of scheduled Pods is 0.
Root cause (check steps to reproduce first): Because we don't have any node with non_exisiting_label desired number of Pods will be 0. Kubernetes won't create .status.updatedNumberScheduled field (at least on version v1.27), because we still are not going to create any Pods.
SUMMARY
kubernetes.core.k8s module fails to create DaemonSet when desired number of scheduled Pods is 0.
Root cause (check steps to reproduce first): Because we don't have any node with
non_exisiting_label
desired number of Pods will be 0. Kubernetes won't create.status.updatedNumberScheduled
field (at least on version v1.27), because we still are not going to create any Pods.ISSUE TYPE
COMPONENT NAME
kubernetes.core.plugins.module_utils.k8s.waiter
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Ubuntu 22.04 on controller Kubernetes v1.27 Kubernetes Python package: kubernetes-30.1.0
STEPS TO REPRODUCE
EXPECTED RESULTS
Expected behavior is having this task with attribute "wait: true" to finish successfully as we number of desired pods = number of exiting pods =0
ACTUAL RESULTS
Current behavior: finished with timeout status