FAQs
1. An error is reported and the Kmesh service exits after being started because the IP address of the control plane program is not configured in cluster startup mode
Possible cause: In cluster startup mode, the Kmesh service needs to communicate with the control plane program and obtain configuration information from the control plane. Therefore, you need to set the correct IP address of the control plane program.
Solution: Set the correct IP address of the control plane program by referring to the cluster startup mode in Installation and Deployment.
2. The message "get kube config error!" is displayed when the Kmesh service is started
Possible cause: In cluster startup mode, the Kmesh service automatically obtains the IP address of the control plane program based on the Kubernetes configuration. If the kubeconfig path of Kubernetes is not configured in the environment, the kubeconfig will fail to be obtained, and the message "get kube config error!" is displayed. (If the Kmesh configuration file has been manually modified and the IP address of the control plane program has been correctly configured, ignore this problem.)
Solution: Configure kubeconfig as follows:
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config