2017-03-17 76 views
1

當運行一些命令,錯誤(禁止):服務器不允許訪問所請求的資源(後replicationcontrollers)

error occur: 
/home/kubernetes/cluster/ubuntu/binaries# ./kubectl version 
Client Version: version.Info{Major:"1", Minor:"5", GitVersion:"v1.5.4", GitCommit:"7243c69eb523aa4377bce883e7c0dd76b84709a1", GitTreeState:"clean", BuildDate:"2017-03-07T23:53:09Z", GoVersion:"go1.7.4", Compiler:"gc", Platform:"linux/amd64"} 
Error from server (Forbidden): the server does not allow access to the requested resource 

這有什麼錯我的配置?

非常感謝

+0

/home/kubernetes/cluster/ubuntu/binaries#./kubectl run helloworld --image = canal-cni:latest --port = 8888 服務器錯誤(Forbidden):服務器不允許訪問請求的資源交replicationcontrollers) – caokun

+0

OS信息 NAME = 「Ubuntu的」 VERSION = 「16.04 LTS(Xenial Xerus)」 ID = ubuntu的 ID_LIKE = Debian的 PRETTY_NAME = 「Ubuntu的16.04 LTS」 VERSION_ID = 「16.04」 HOME_URL =「HTTP ://www.ubuntu.com/「 SUPPORT_URL =」http://help.ubuntu.com/「 BUG_REPORT_URL =」http://bugs.launchpad.net/ubuntu/「 UBUNTU_CODENAME = xenial – caokun

+0

Linux SZV1000240235 4.4 .0-21-generic#37-Ubuntu SMP Mon Apr 18 18 :33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux 安裝參考文檔: https://kubernetes.io/docs/getting-started-guides/ubuntu/manual/ – caokun

回答

0

KUBE-API服務器--service簇-IP-範圍= 10.1.0.1/24 --insecure綁定地址= 0.0.0.0 --etcd的服務器= http://127.0.0.1:4001 --secure -port = 0 --insecure-port = 35001 --allow-privileged = True --advertise-address = 100.109.165.127 --bind-address = 100.109.165.127 --insecure-bind-address = 100.109.165.127 ./ kubectl版本-s 100.109.165.127:35001 .profile文件中添加 所有IP在NO_PROXY 吸吮作爲 出口NO_PROXY = 「127.0.0.1 localhost,而100.109.196.103,100.109.165.127」 問題reolved

相關問題