{"action":"created","issue":{"url":"https://api.github.com/repos/gjmzj/kubeasz/issues/19","repository_url":"https://api.github.com/repos/gjmzj/kubeasz","labels_url":"https://api.github.com/repos/gjmzj/kubeasz/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/gjmzj/kubeasz/issues/19/comments","events_url":"https://api.github.com/repos/gjmzj/kubeasz/issues/19/events","html_url":"https://github.com/gjmzj/kubeasz/issues/19","id":281706389,"number":19,"title":"kubectl logs报错 error: You must be logged in to the server","user":{"login":"njqaaa","id":5145656,"avatar_url":"https://avatars2.githubusercontent.com/u/5145656?v=4","gravatar_id":"","url":"https://api.github.com/users/njqaaa","html_url":"https://github.com/njqaaa","followers_url":"https://api.github.com/users/njqaaa/followers","following_url":"https://api.github.com/users/njqaaa/following{/other_user}","gists_url":"https://api.github.com/users/njqaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/njqaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/njqaaa/subscriptions","organizations_url":"https://api.github.com/users/njqaaa/orgs","repos_url":"https://api.github.com/users/njqaaa/repos","events_url":"https://api.github.com/users/njqaaa/events{/privacy}","received_events_url":"https://api.github.com/users/njqaaa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-13T10:57:10Z","updated_at":"2017-12-13T11:32:51Z","closed_at":null,"author_association":"NONE","body":"error: You must be logged in to the server (the server has asked for the client to provide credentials ( pods/log tomcat-69574bf8d5-47nm7))\r\n\r\n容器正常启动，但是使用kubectl logs命令 就出现上述错误，请教下这个怎么解决。\r\n\r\n[root@k8s-master-1 ssl]# kubectl get nodes -o wide\r\nNAME           STATUS    ROLES     AGE       VERSION   EXTERNAL-IP   OS-IMAGE                KERNEL-VERSION               CONTAINER-RUNTIME\r\nk8s-master-1   Ready     master    54m       v1.8.5    <none>        CentOS Linux 7 (Core)   4.11.8-1.el7.elrepo.x86_64   docker://17.11.0-ce\r\nk8s-master-2   Ready     master    54m       v1.8.5    <none>        CentOS Linux 7 (Core)   4.11.8-1.el7.elrepo.x86_64   docker://17.11.0-ce\r\nk8s-master-3   Ready     master    54m       v1.8.5    <none>        CentOS Linux 7 (Core)   4.11.8-1.el7.elrepo.x86_64   docker://17.11.0-ce\r\nk8s-node-1     Ready     node      54m       v1.8.5    <none>        CentOS Linux 7 (Core)   4.11.8-1.el7.elrepo.x86_64   docker://17.11.0-ce\r\nk8s-node-2     Ready     node      54m       v1.8.5    <none>        CentOS Linux 7 (Core)   4.11.8-1.el7.elrepo.x86_64   docker://17.11.0-ce\r\n\r\n[root@k8s-master-1 ssl]# kubectl get pods --all-namespaces\r\nNAMESPACE     NAME                                        READY     STATUS    RESTARTS   AGE\r\ndefault       hello-nginx-5d47cdc4b7-5p5jg                1/1       Running   0          7m\r\ndefault       tomcat-69574bf8d5-2s96b                     1/1       Running   0          41m\r\ndefault       tomcat-69574bf8d5-47nm7                     1/1       Running   0          41m\r\ndefault       tomcat-69574bf8d5-8kd8m                     1/1       Running   0          41m\r\ndefault       tomcat-69574bf8d5-lp4gh                     1/1       Running   0          41m\r\nkube-system   calico-policy-controller-8487549c89-kpjkg   1/1       Running   0          50m\r\nkube-system   kube-apiserver-k8s-master-1                 1/1       Running   0          51m\r\nkube-system   kube-apiserver-k8s-master-2                 1/1       Running   0          51m\r\nkube-system   kube-apiserver-k8s-master-3                 1/1       Running   0          51m\r\nkube-system   kube-controller-manager-k8s-master-1        1/1       Running   0          52m\r\nkube-system   kube-controller-manager-k8s-master-2        1/1       Running   1          52m\r\nkube-system   kube-controller-manager-k8s-master-3        1/1       Running   0          52m\r\nkube-system   kube-dns-5595fc64b9-sbqn4                   3/3       Running   0          50m\r\nkube-system   kube-proxy-9fj5w                            1/1       Running   0          50m\r\nkube-system   kube-proxy-ctbnd                            1/1       Running   0          50m\r\nkube-system   kube-scheduler-k8s-master-1                 1/1       Running   0          52m\r\nkube-system   kube-scheduler-k8s-master-2                 1/1       Running   0          52m\r\nkube-system   kube-scheduler-k8s-master-3                 1/1       Running   0          52m\r\nkube-system   kubernetes-dashboard-574bdff9f-hjbbp        1/1       Running   0          50m"},"comment":{"url":"https://api.github.com/repos/gjmzj/kubeasz/issues/comments/351365274","html_url":"https://github.com/gjmzj/kubeasz/issues/19#issuecomment-351365274","issue_url":"https://api.github.com/repos/gjmzj/kubeasz/issues/19","id":351365274,"user":{"login":"gjmzj","id":33503702,"avatar_url":"https://avatars0.githubusercontent.com/u/33503702?v=4","gravatar_id":"","url":"https://api.github.com/users/gjmzj","html_url":"https://github.com/gjmzj","followers_url":"https://api.github.com/users/gjmzj/followers","following_url":"https://api.github.com/users/gjmzj/following{/other_user}","gists_url":"https://api.github.com/users/gjmzj/gists{/gist_id}","starred_url":"https://api.github.com/users/gjmzj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gjmzj/subscriptions","organizations_url":"https://api.github.com/users/gjmzj/orgs","repos_url":"https://api.github.com/users/gjmzj/repos","events_url":"https://api.github.com/users/gjmzj/events{/privacy}","received_events_url":"https://api.github.com/users/gjmzj/received_events","type":"User","site_admin":false},"created_at":"2017-12-13T11:32:51Z","updated_at":"2017-12-13T11:32:51Z","author_association":"OWNER","body":"你能贴一下是使用具体哪个命令报这个错吗？\r\n还有，你使用kubectl logs 查看所有pod都会报错吗？"}}
{"actor":{"display_login":"gjmzj"}}