Skip to content

Instantly share code, notes, and snippets.

@hieudang-agilityio
Last active September 25, 2019 03:58
Show Gist options
  • Save hieudang-agilityio/ebb300c8e7b67bf4fbf86c9cd71dc965 to your computer and use it in GitHub Desktop.
Save hieudang-agilityio/ebb300c8e7b67bf4fbf86c9cd71dc965 to your computer and use it in GitHub Desktop.
When got this issue: This cluster is currently Provisioning; areas that interact directly with it will not be available until the API is ready. [controlPlane] Failed to bring up Control Plane: Failed to verify healthcheck: Service [kube-apiserver] is not healthy
#!/bin/sh
# When got this issue: This cluster is currently Provisioning; areas that interact directly with it will not be available until the API is ready. [controlPlane] Failed to bring up Control Plane: Failed to verify healthcheck: Service [kube-apiserver] is not healthy
docker rm -f $(docker ps -qa)
docker volume rm $(docker volume ls -q)
cleanupdirs="/var/lib/etcd /etc/kubernetes /etc/cni /opt/cni /var/lib/cni /var/run/calico /opt/rke"
for dir in $cleanupdirs; do
echo "Removing $dir"
rm -rf $dir
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment