Additionally, once access to the k8s-dashboard has been established through a URL, I’m not too sure how to generate the k8s-dashboard bearer token in Qovery. I’m able to do this using kubectl attached to a plain vanilla AWS EKS cluster.
Can you create a tutorial on how to install the kubernetes-dashboard on a Qovery managed AWS EKS cluster? Thanks!
I’ll help you there to get your dashboard. First of all, in the documentation, it’s discouraged to expose your dashboard publicly. So I encourage you to delete the public exposed port you’ve created on Qovery.
Following the documentation, you have to create this barear token. In order to do it, you’ll have to:
Get a kubernetes access. If you don’t have access to your Kubernetes cluster today, you need your kubeconfig, you can get it with the CLI (if you have the permissions):
1.1. List your clusters to get the ID: qovery cluster list
1.2 Retrieve your kubeconfig file: qovery cluster kubeconfig --cluster-id xxxx
Note: do not forget to have the AWS env vars set and the CLI installed, or you won’t be able to establish a connection to your cluster.
Create permissions file and replace the namespace with the one of your environment (it can be found in the variables and named QOVERY_KUBERNETES_NAMESPACE_NAME) in a file (dashboard-adminuser.yaml):
At this point, your installation is done and you don’t need anymore to have access to your Kubernetes cluster with kubectl.
From the Qovery console, in your environment overview, you should see your pods. Take the name of the Kong one (ex: helm-zef6ea651-ks-dash-kong-9b4859c66-b9gr6) and run this command to create a port forward:
qovery port-forward -p 8443:8443 --pod <set your pod name here>
Check everything is ok and type yes to validate connection.
Leave it open and open your web browser at https://127.0.0.1:8443. Paste the token and the magic will happen