How do I obtain Kubernetes CA Certificate?
This can be found in your kube-system
(or any other) namespace by running the following on your default-token
secret:
kubectl get secret <secret name> -n <namespace> -o jsonpath="{['data']['ca\.crt']}" | base64 --decode
To find the secret name
run kubectl get secret -n kube-system
and find the secret that starts with default-token
.
This will give you something like:
-----BEGIN CERTIFICATE-----XXXXXXXXXXX....-----END CERTIFICATE-----
When you are entering this certificate, make sure to enter the BEGIN and END header and footer.