Playbook #1 |
/root/kubeinit/ci/builds/6mbKNrxD/0/kubeinit/kubeinit/kubeinit-aux/kubeinit/playbook.yml |
Task result details
- Play: Run the deployment on the target infrastructure (OpenStack/libvirt hypervisors)
- Task: kubeinit.kubeinit.kubeinit_k8s : Allow schedule workloads in controller nodes if there are no compute nodes
- Action: ansible.builtin.shell
- Path: /root/.ansible/collections/ansible_collections/kubeinit/kubeinit/roles/kubeinit_k8s/tasks/main.yml:185
- Host: localhost ( task delegated to controller-01 )
- Status: changed
- Started: 29 Oct 2023 00:50:58 +0000
- Ended: 29 Oct 2023 00:51:00 +0000
- Duration: 00:00:02.04
- Tags:
- task_deploy_cluster
Field | Value |
---|---|
changed |
True |
cmd |
set -o pipefail dnf install -y jq # Deprecated in 1.24 for node in $(kubectl get nodes -o json | jq -r '.items[] | select(.spec.taints[]?.key=="node-role.kubernetes.io/master") | .metadata.labels."kubernetes.io/hostname"'); do kubectl taint node ${node} node-role.kubernetes.io/master:NoSchedule- done # Working starting on 1.24 for node in $(kubectl get nodes -o json | jq -r '.items[] | select(.spec.taints[]?.key=="node-role.kubernetes.io/control-plane") | .metadata.labels."kubernetes.io/hostname"'); do kubectl taint node ${node} node-role.kubernetes.io/control-plane:NoSchedule- done |
delta |
0:00:01.590534 |
end |
2023-10-29 00:51:00.158854 |
invocation |
{ "module_args": { "_raw_params": "set -o pipefail\ndnf install -y jq\n# Deprecated in 1.24\nfor node in $(kubectl get nodes -o json | jq -r '.items[] | select(.spec.taints[]?.key==\"node-role.kubernetes.io/master\") | .metadata.labels.\"kubernetes.io/hostname\"');\ndo\n kubectl taint node ${node} node-role.kubernetes.io/master:NoSchedule-\ndone\n# Working starting on 1.24\nfor node in $(kubectl get nodes -o json | jq -r '.items[] | select(.spec.taints[]?.key==\"node-role.kubernetes.io/control-plane\") | .metadata.labels.\"kubernetes.io/hostname\"');\ndo\n kubectl taint node ${node} node-role.kubernetes.io/control-plane:NoSchedule-\ndone\n", "_uses_shell": true, "argv": null, "chdir": null, "creates": null, "executable": "/bin/bash", "removes": null, "stdin": null, "stdin_add_newline": true, "strip_empty_ends": true } } |
msg |
|
rc |
0 |
start |
2023-10-29 00:50:58.568320 |
stderr |
|
stderr_lines |
[]
|
stdout |
Last metadata expiration check: 0:07:22 ago on Sun 29 Oct 2023 12:43:37 AM UTC. Package jq-1.6-15.el9.x86_64 is already installed. Dependencies resolved. Nothing to do. Complete! node/controller-01.k8scluster.kubeinit.local untainted |
stdout_lines |
[ "Last metadata expiration check: 0:07:22 ago on Sun 29 Oct 2023 12:43:37 AM UTC.", "Package jq-1.6-15.el9.x86_64 is already installed.", "Dependencies resolved.", "Nothing to do.", "Complete!", "node/controller-01.k8scluster.kubeinit.local untainted" ] |