Following error is coming up after installing meshery and unable to start meshery on kubernetes:
⣻ Deploying Meshery on KubernetesError: failed to start Meshery
See https://docs.meshery.io/reference/mesheryctl/system for usage details
: could not install meshery server: Kubernetes cluster unreachable: Get "https://192.168.49.2:8443/version": tls: failed to verify certificate: x509: certificate signed by unknown authority
could not install meshery-operator: Kubernetes cluster unreachable: Get "https://192.168.49.2:8443/version": tls: failed to verify certificate: x509: certificate signed by unknown authority
@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 directory sudo cp ~/.minikube/ca.crt /usr/local/share/ca-certificates/
For me the issue is resolved when I went to ~/.kube/config and changed certificate-authority-data, client-certificate-data, client-key-data previously the value of these where pointed out in folder structure after the minikube start command when I ran this command kubectl config view --minify --flatten > config_minikube.yaml it replaced the folder path to the actual path in the config_minikube.yaml I copied them and replaced in the ~/.kube/config file and then ran the mesheryctl system start then the in-cluster installation is successful.