Posted on Leave a comment

Error while proxying request: getting credentials: exec: executable kubelogin not found

For those who do not know Lens, it is a powerful IDE tool for managing Kubernetes. When it comes to k8s administration, sometimes command line would be a pain for engineers so various companies create tools that can provide the same functionality with a modern GUI. Such tool is Lens and you can find it using the link below.

After you setup Lens you may encounter an error when you try to connect to your k8s cluster.

The error indicates that you are missing kubelogin tool. You can verify that by typing kubelogin –version in the command line. If you get an error you should go and install the tool.

Following the instructions provided by the documentation you will be able to install kubelogin.

I personally used the setup for windows through powershell.

After you install kubelogin, close and open the application again so that the PATH settings get updated. Finally you will be able to browse your cluster with Lens.

Posted on Leave a comment

Install and configure kubernetes dashboard for Docker Desktop local cluster

Kubernetes dashboard is a helpful UI application that presents all your resources inside your k8s cluster. As most people prefer GUI instead of single commands, this tool can make your k8s administration experience better.

When you install docker desktop on your local or development machines, you can select to also include a k8s installation with it. You can locate all your Kubernetes settings using the Docker Desktop UI.

The local cluster is composed of only one node, the computer itself.

In order to install dashboard first run the below kubectl apply command:

kubectl apply -f

Then you will need to run kubectl proxy

Then open GUI Dashboard.

Kubernetes Dashboard

The below dialog will appear.

We will examine the Token example.

Create and save the below definition as s.yml. Then apply this configuration with kubectl apply -f s.yml

apiVersion: v1
kind: ServiceAccount
  name: admin-user
  namespace: kubernetes-dashboard

Create and save the below definition as r.yml. Then apply this configuration with kubectl apply -f r.yml

kind: ClusterRoleBinding
  name: admin-user
  kind: ClusterRole
  name: cluster-admin
- kind: ServiceAccount
  name: admin-user
  namespace: kubernetes-dashboard

Then run the below command:

kubectl -n kubernetes-dashboard get secret $(kubectl -n kubernetes-dashboard get sa/admin-user -o jsonpath="{.secrets[0].name}") -o go-template="{{.data.token | base64decode}}"

The output will be your Token.

Paste the Token on the previous link, and then you will have a working dashboard for your local cluster.

You can also skip the Token procedure. Simply run the below command:

kubectl patch deployment kubernetes-dashboard -n kubernetes-dashboard --type 'json' -p '[{"op": "add", "path": "/spec/template/spec/containers/0/args/-", "value": "--enable-skip-login"}]'

Then you will see a skip button near the sign in

Kubernetes dashboard:

Deploy and Access the Kubernetes Dashboard | Kubernetes

Token procedure:

dashboard/ at master · kubernetes/dashboard (