kubernetes之一步一个坑
生活随笔
收集整理的這篇文章主要介紹了
kubernetes之一步一个坑
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
kubernetes執行kubectl get nodes發生問題:Unable to connect to the server: x509: certificate signed by unknown authority (possibly because of “crypto/rsa: verification error” while trying to verify candidate authority certificate “kubernetes”)
步驟一:設置環境變量
具體根據情況,此處記錄linux設置該環境變量
方式一:編輯文件設置
vim /etc/profile
在底部增加新的環境變量 export KUBECONFIG=/etc/kubernetes/admin.conf
方式二:直接追加文件內容
echo “export KUBECONFIG=/etc/kubernetes/admin.conf” >> /etc/profile
步驟二:使生效
source /etc/profile
總結
以上是生活随笔為你收集整理的kubernetes之一步一个坑的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: K8s卸载清理flannel插件清理
- 下一篇: modprobe:用于向内核中加载模块或