@Yana_Gupta I got this error before, if you are using ubuntu (or any linux distribution), your certificate of minikube (assuming you’re using minikube) isn’t authorized in your system i try following step, I hope it will work.
-
copy
.minikube/ca.crt
in trusted certificates directorysudo cp ~/.minikube/ca.crt /usr/local/share/ca-certificates/
-
update ca-certificates
sudo update-ca-certificates
if you’re not using minikube then find path of your ca.crt you might find it in kubeconfig file.
Thank you.