“x509: certificate signed by unknown authority” with Kubernetes [solved]

Chetan Bothra
May 3, 2022

--

How to solve

  1. run `gcloud container clusters get-credentials sample-cluster --zone=us-central1-f in your kubernates cluster or in your local ( if u have access)
  2. then view cat ~/.kube/config
  3. you will then see a big certificate with the label as certficate-authority-date . Copy that value
  4. Convert into base64 using https://www.base64decode.org/
  5. Add the output in your gitlab

--

--

Chetan Bothra

AWS Certified | GCP | DevOps | SRE | Docker | DevSecOps | Kubernetes | Automation | Terraform | Serverless | Blockchain