x509 certificate signed by unknown authority- Kubernetes

后端 未结 5 2222
-上瘾入骨i
-上瘾入骨i 2021-02-19 03:32

I am configuring Kubernetes cluster with 2 nodes in coreos as described in https://coreos.com/kubernetes/docs/latest/getting-started.html without flannel. Both

5条回答
  •  走了就别回头了
    2021-02-19 03:51

    From [kubernetes][1] official site:

    1. Verify that the $HOME/.kube/config file contains a valid certificate, and regenerate a certificate
    2. Unset the KUBECONFIG environment variable using:

      unset KUBECONFIG

      Or set it to the default KUBECONFIG location:

      export KUBECONFIG=/etc/kubernetes/admin.conf

    3. Another workaround is to overwrite the existing kubeconfig for the “admin” user:

       mkdir $HOME/.kube
       sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
       sudo chown $(id -u):$(id -g) $HOME/.kube/config```
    
    
    **Reference:** [official site link reference][2]
    
    [1]: https://kubernetes.io/
    [2]: https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/troubleshooting-kubeadm/
    

提交回复
热议问题