Accessing Dashboards
2 minute read
Accessing Dashboards installed with KubeOps
To access a Application dashboard an SSH-Tunnel to one of the Control-Planes is needed. The following Dashboards are available and configured with the following NodePorts by default:
NodePort
30211
Initial login credentials
- username: the username set in the kubeopsvalues.yaml for the cluster creation
- password: the password set in the kubeopsvalues.yaml for the cluster creation
NodePort
30050
Initial login credentials
- username: admin
- password: Password@@123456
NodePort
- https: 30003
Initial login credentials
- username: admin
- password: the password set in the kubeopsvalues.yaml for the cluster creation
NodePort
The Rook/Ceph Dashboard has no fixed NodePort yet. To find out the NodePort used by Rook/Ceph follow these steps:
- List the Services in the KubeOps namespace
kubectl get svc -n kubeops
- Find the line with the service rook-ceph-mgr-dashboard-external-http
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
rook-ceph-mgr-dashboard-external-http NodePort 192.168.197.13 <none> 7000:31268/TCP 21h
Or use,
echo $(kubectl get --namespace rook-ceph -o jsonpath="{.spec.ports[0].nodePort}" services rook-ceph-mgr-dashboard-external-http)
In the example above the NodePort to connect to Rook/Ceph would be 31268.
Initial login credentials
echo Username: admin
echo Password: $(kubectl get secret rook-ceph-dashboard-password -n rook-ceph --template={{.data.password}} | base64 -d)
The dashboard can be accessed with localhost:NodePort/ceph-dashboard/
NodePort
30007
Initial login credentials
kubeops 1.4
An access token is required to log in to the KubeOps-Dashboard.
The access token is linked to the service account headlamp-admin and stored in the secret headlamp-admin
The access token can be read from the secret
echo $(kubectl get secret headlamp-admin --namespace monitoring --template=\{\{.data.token\}\} | base64 --decode)
kubeops 1.5 and later
kubectl -n monitoring create token headlamp-admin
NodePort
30180
Initial login credentials
echo Username: admin
echo Password: $(kubectl get secret --namespace keycloak keycloak -o jsonpath="{.data.admin-password}" | base64 -d)
Access the dashboard with localhoost:NodePort/keycloak/
Connecting to the Dashboard
In order to connect to one of the dashboards, an ssh tunnel has to be established. There are various tools for doing this, like the command line, putty or MobaXterm.
To establish a tunnel, the NodePort of the dashboard has to be forwarded on one of the control planes to the local machine. After that the dashboard can be accessed with localhost:<Port>
.
Connecting to the Dashboard via DNS
In order to connect to the dashboard via DNS the hosts file in /etc/hosts
need the following additional entries:
10.2.10.11 kubeops-dashboard.local
10.2.10.11 harbor.local
10.2.10.11 keycloak.local
10.2.10.11 opensearch.local
10.2.10.11 grafana.local
10.2.10.11 rook-ceph.local
The IP address must be the same as the address of your Master1.