Accessing the Kube dashboard on IBM Cloud

6/5/2018

The kube dashboard should be easily accessible from the IBM Cloud console.

However when I try accessing it, I get a 401 error message (this is not always the case however it happened a lot today)

Dashboard access 401 error

The suggestion provided in the 401 page did not help.

-- Manglu
containers
ibm-cloud
kubernetes
kubernetes-dashboard

3 Answers

6/20/2018

We also have a timing issue when new clusters are created where the kubedashboard is not available immediately after cluster-create. We're working on providing better status/messaging in this window of time. Typically if you see this shortly after a cluster create, you may just need to wait a few minutes for the dashboard to be started.

-- Kitch
Source: StackOverflow

6/6/2018

There was an IBM Cloud incident that affected IBM Cloud Kubernetes Service management functions, including kube dashboard access. This issue has been resolved.

The outage is posted here: https://console.bluemix.net/status/notification/877c340fb941bc8c72211c513763c077

-- John McMeeking
Source: StackOverflow

6/5/2018

The source of this information is here. And here you can find the information about access tokens for Kubernetes dashboard.

Check if you are still able to connect to Kubernetes dashboard in the following ways:

kubectl proxy:

Check if your kubectl is properly configured and has access to the cluster.

`$ kubectl cluster-info 
Kubernetes master is running at ...
...`

Start local proxy server:

$ kubectl proxy

Use the following address to access dashboard:

http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/

API Server:

If you are able to communicate with the cluster apiserver right from your workstation, you can access the dashboard by following this link:

https://<master-ip>:<apiserver-port>/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/

The apiserver port is 6443 by default.

Ingress:

You can expose a dashboard port using an Ingress resource.

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  annotations:
    ingress.kubernetes.io/ssl-passthrough: "true"
    nginx.ingress.kubernetes.io/secure-backends: "true"
    nginx.org/ssl-backends: "kubernetes-dashboard"
    kubernetes.io/ingress.allow-http: "false"
  name: dashboard-ingress
  namespace: kube-system
spec:
  tls:
  - hosts:
    - server-dns-name
    secretName: kubernetes-dashboard-certs
  rules:
  - host: server-dns-name
    http:
      paths:
      - path: /dashboard
        backend:
          serviceName: kubernetes-dashboard
          servicePort: 443
-- VAS
Source: StackOverflow