“x509: certificate signed by unknown authority” with Kubernetes [solved]
May 3, 2022
How to solve
- run `
gcloud container clusters get-credentials sample-cluster --zone=us-central1-f
in your kubernates cluster or in your local ( if u have access) - then view
cat ~/.kube/config
- you will then see a big certificate with the label as
certficate-authority-date
. Copy that value - Convert into base64 using https://www.base64decode.org/
- Add the output in your gitlab