Logging Kubernetes拒绝本地kubectl客户端的pod日志

Logging Kubernetes拒绝本地kubectl客户端的pod日志,logging,kubernetes,rancher,kubectl,Logging,Kubernetes,Rancher,Kubectl,我有一个Kubernetes集群,开始在主机上使用rancher。我尝试很少[在it中]启动。我能够启动pod,但无法从kubectl logs命令获取pod日志 我收到错误“来自服务器的错误(BadRequest):服务器以未知原因拒绝了我们的请求(get pods xxx)” kubectl版本显示以下内容: 客户端版本:Version.Info{Major:“1”,Minor:“5”,GitVersion:“v1.5.2”,GitCommit:“08e099554f3c31f6e6f07b

我有一个Kubernetes集群,开始在主机上使用rancher。我尝试很少[在it中]启动。我能够启动pod,但无法从
kubectl logs
命令获取pod日志

我收到错误“来自服务器的错误(BadRequest):服务器以未知原因拒绝了我们的请求(get pods xxx)”

kubectl版本显示以下内容:

客户端版本:Version.Info{Major:“1”,Minor:“5”,GitVersion:“v1.5.2”,GitCommit:“08e099554f3c31f6e6f07b448ab3ed78d0520507”,GitRestate:“clean”,BuildDate:“2017-01-12T04:57:25Z”,政府版本:“go1.7.4”,编译器:“gc”,平台:“linux/amd64”}

服务器版本:Version.Info{Major:“1”,Minor:“5+”,GitVersion:“v1.5.0-115+611cbb22703182”,GitCommit:“611cbb2270318261863beda17bf9f3e90afa148”,gittrestate:“clean”,BuildDate:“2017-01-13T18:03:00Z”,政府版本:“go1.7.4”,编译器:“gc”,平台:“linux/amd64”}

旧版本的Kubernetes存在问题,应在最新版本中修复,请参阅此处详细讨论

我试用了最新版本,效果很好:

$ kubectl log kubernetes-dashboard-1cvm4 --namespace kube-system
W0412 10:47:32.040258   13000 cmd.go:361] log is DEPRECATED and will be removed in a future version. Use logs instead.
Using HTTP port: 9090
Creating API server client for https://10.0.0.1:443
Successful initial request to the apiserver, version: v1.6.0
Creating in-cluster Heapster client
Using service account token for csrf signing
Kubernetes版本:

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"6", GitVersion:"v1.6.0", GitCommit:"fff5156092b56e6bd60fff75aad4dc9de6b6ef37", GitTreeState:"clean", BuildDate:"2017-03-28T16:36:33Z", GoVersion:"go1.7.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"6", GitVersion:"v1.6.0", GitCommit:"fff5156092b56e6bd60fff75aad4dc9de6b6ef37", GitTreeState:"dirty", BuildDate:"2017-04-07T20:43:50Z", GoVersion:"go1.7.1", Compiler:"gc", Platform:"linux/amd64"}