ADO Pipeline Environment Kubernetes On-Prem Resource Connection failing with x509: certificate signed by unknown authority ADO Pipeline Environment Kubernetes On-Prem Resource Connection failing with x509: certificate signed by unknown authority kubernetes kubernetes

ADO Pipeline Environment Kubernetes On-Prem Resource Connection failing with x509: certificate signed by unknown authority


Check this documentation:

The issue is that your local Kubernetes config file must have thecorrect credentials.

When you create a cluster on GKE, it will give you credentials,including SSL certificates and certificate authorities. These need tobe stored in a Kubernetes config file (Default: ~/.kube/config) sothat kubectl and helm can access them.

Also, check answer in case Helm 3: x509 error when connecting to local Kubernetes

Helm looks for kubeconfig at this path $HOME/.kube/config.

Please run this command

microk8s.kubectl config view --raw > $HOME/.kube/config

This will save the config at required path in your directory and shallwork