1

当运行一些命令时,

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

我的配置有什么问题?

非常感谢

4

1 回答 1

0

kube-apiserver --service-cluster-ip-range=10.1.0.1/24 --insecure-bind-address=0.0.0.0 --etcd-servers= 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 version -s .profile 中的 100.109.165.127:35001 将 no_proxy 中的所有 ip 添加为 export no_proxy="127.0.0.1,localhost,100.109.196.103,100.109.165.127" 问题已解决

于 2017-03-23T08:03:05.763 回答