kubernetes:The connection to the server localhost:8080 was refused - did you specify the right host

背景描述: 使用kuberadm搭建的集羣環境,work節點 使用 kubectl查詢資源報錯 緣由: kubeadm搭建完環境以後會刪除work節點上的admin.conf的認證配置文件,若是須要在work節點上使用kubectl查詢資源,須要將master節點的admin.conf 拷貝到work節點 解決辦法: 1.拷貝admin.conf至work 2.設置環境變量以後就可使用了 web
相關文章
相關標籤/搜索