Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@kub1 ~]# kubectl logs kubernetes-dashboard-3203831700-mtp29 -n kube-system
- Using HTTP port: 9090
- Creating API server client for https://10.96.0.1:443
- 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
- Refer to the troubleshooting guide for more information: https://github.com/kubernetes/dashboard/blob/master/docs/user-guide/troubleshooting.md
- [root@kub1 ~]# kubectl exec -it kube-apiserver-kub1.localhost -n kube-system -- ll /var/run/secrets/kubernetes.io/serviceaccount/token
- exec: "ll": executable file not found in $PATH
- error: error stream protocol error: invalid exit code value "-1"
- [root@kub1 ~]# kubectl exec -it kube-apiserver-kub1.localhost -n kube-system -- ls /var/run/secrets/kubernetes.io/serviceaccount/token
- ls: /var/run/secrets/kubernetes.io/serviceaccount/token: No such file or directory
- [root@kub1 ~]# ll /var/run/secrets/kubernetes.io/serviceaccount/token
- ls: cannot access /var/run/secrets/kubernetes.io/serviceaccount/token: No such file or directory
- [root@kub1 ~]# kubectl get services --all-namespaces
- NAMESPACE NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
- default kubernetes 10.96.0.1 <none> 443/TCP 1h
- kube-system calico-etcd 10.96.232.136 <none> 6666/TCP 1h
- kube-system kube-dns 10.96.0.10 <none> 53/UDP,53/TCP 1h
- kube-system kubernetes-dashboard 10.99.13.119 <nodes> 80:31289/TCP 1h
- policy-demo nginx 10.109.20.171 <none> 80/TCP 1h
- [root@kub1 ~]# kubectl exec busybox -- curl -k https://10.96.0.1
- exec: "curl": executable file not found in $PATH
- error: error stream protocol error: invalid exit code value "-1"
- [root@kub1 ~]# kubectl exec test-701078429-g8q09 -- curl -k https://10.96.0.1
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 0 0 0 0 0 0 0 0 --:--:-- 0:00:14 --:--:-- 0^C
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement