错误(禁止):服务器不允许访问所请求的资源(后replicationcontrollers)
问题描述:
当运行一些命令,错误(禁止):服务器不允许访问所请求的资源(后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
这有什么错我的配置?
非常感谢
答
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
/home/kubernetes/cluster/ubuntu/binaries#./kubectl run helloworld --image = canal-cni:latest --port = 8888 服务器错误(Forbidden):服务器不允许访问请求的资源交replicationcontrollers) – caokun
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
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