Why the hell is your Kubernetes API public? | lbr.
Do you ever really think about how you get access to your Kubernetes control plane? Whatever mechanism you use to provision your cluster, you get a KUBECONFIG and usually just go on your merry way to overcomplicating your infrastructure.
However, if you’ve ever looked at your KUBECONFIG you’ll see you have a server address.
You can check the health of your cluster by doing the following:
curl -k $(kubectl config view --output jsonpath='{.clusters[*].cluster.server}')/healthz
Assuming everything ...
Read more at leebriggs.co.uk