7b1dc600d5
When running cluster.yml for new machines what containerd is already install but Kubernetes cluster were not installed before, the task "remove-node | List nodes" is failed like "changed": false, "cmd": [ "/usr/local/bin/kubectl", "--kubeconfig", "/etc/kubernetes/admin.conf", "get", "nodes", "-o", "go-template={{ range .items }}{{ .metadata.name }} {{ "\n" }}{{ end }}" ], .. "stderr": "error: stat /etc/kubernetes/admin.conf: no such file or directory", That was due to lack to check the existing Kubernetes cluster exists or not before running "kubectl drain" command. This adds the check to avoid the issue. |
||
---|---|---|
.. | ||
adduser | ||
bastion-ssh-config | ||
bootstrap-os | ||
container-engine | ||
download | ||
etcd | ||
etcdctl | ||
helm-apps | ||
kubernetes | ||
kubernetes-apps | ||
kubespray-defaults | ||
network_plugin | ||
recover_control_plane | ||
remove-node | ||
reset | ||
upgrade | ||
win_nodes/kubernetes_patch |