Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. [root@kub1 ~]# kubectl logs kubernetes-dashboard-3203831700-mtp29 -n kube-system
  2. Using HTTP port: 9090
  3. Creating API server client for https://10.96.0.1:443
  4. Error while initializing connection to Kubernetes apiserver. This most likely means that the cluster is misconfigured (e.g., it has invalid apiserver certificates or service accounts configuration) or the --apiserver-host param points to a server that does not exist. Reason: Get https://10.96.0.1:443/version: dial tcp 10.96.0.1:443: i/o timeout
  5. Refer to the troubleshooting guide for more information: https://github.com/kubernetes/dashboard/blob/master/docs/user-guide/troubleshooting.md
  6. [root@kub1 ~]# kubectl exec -it kube-apiserver-kub1.localhost -n kube-system -- ll /var/run/secrets/kubernetes.io/serviceaccount/token
  7. exec: "ll": executable file not found in $PATH
  8. error: error stream protocol error: invalid exit code value "-1"
  9. [root@kub1 ~]# kubectl exec -it kube-apiserver-kub1.localhost -n kube-system -- ls /var/run/secrets/kubernetes.io/serviceaccount/token
  10. ls: /var/run/secrets/kubernetes.io/serviceaccount/token: No such file or directory
  11. [root@kub1 ~]# ll /var/run/secrets/kubernetes.io/serviceaccount/token
  12. ls: cannot access /var/run/secrets/kubernetes.io/serviceaccount/token: No such file or directory
  13.  
  14. [root@kub1 ~]# kubectl get services --all-namespaces
  15. NAMESPACE NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
  16. default kubernetes 10.96.0.1 <none> 443/TCP 1h
  17. kube-system calico-etcd 10.96.232.136 <none> 6666/TCP 1h
  18. kube-system kube-dns 10.96.0.10 <none> 53/UDP,53/TCP 1h
  19. kube-system kubernetes-dashboard 10.99.13.119 <nodes> 80:31289/TCP 1h
  20. policy-demo nginx 10.109.20.171 <none> 80/TCP 1h
  21.  
  22.  
  23. [root@kub1 ~]# kubectl exec busybox -- curl -k https://10.96.0.1
  24. exec: "curl": executable file not found in $PATH
  25. error: error stream protocol error: invalid exit code value "-1"
  26. [root@kub1 ~]# kubectl exec test-701078429-g8q09 -- curl -k https://10.96.0.1
  27. % Total % Received % Xferd Average Speed Time Time Time Current
  28. Dload Upload Total Spent Left Speed
  29. 0 0 0 0 0 0 0 0 --:--:-- 0:00:14 --:--:-- 0^C
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement