# Remote access to Kubernetes Dashboard in minikube is not possible because login button always disable

**URL:** <https://discuss.kubernetes.io/t/remote-access-to-kubernetes-dashboard-in-minikube-is-not-possible-because-login-button-always-disable/25497>\
**Category:** General Discussions\
**Tags:** minikube\
**Created:** [September 21, 2023, 6:03pm UTC](https://discuss.kubernetes.io/t/remote-access-to-kubernetes-dashboard-in-minikube-is-not-possible-because-login-button-always-disable/25497 "2023-09-21T18:03:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miguel\_Angel\_Salinas](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/miguel_angel_salinas/32/13328_2.png) [@Miguel\_Angel\_Salinas](https://discuss.kubernetes.io/u/Miguel_Angel_Salinas)\
**Post date:** [September 21, 2023, 6:03pm UTC](https://discuss.kubernetes.io/t/remote-access-to-kubernetes-dashboard-in-minikube-is-not-possible-because-login-button-always-disable/25497/1 "2023-09-21T18:03:13Z")

</div>

- Deploy kubernetes dashboard as:

`kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.7.0/aio/deploy/recommended.yaml`

- Create Proxy:

`kubectl proxy --address="0.0.0.0" --accept-hosts='^*$'`

- Create service account:

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

```

- Create Role Binding:

```auto
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: admin-user
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-admin
subjects:
- kind: ServiceAccount
  name: admin-user
  namespace: kubernetes-dashboard

```

- Create Secret:

```auto
apiVersion: v1
kind: Secret
metadata:
  name: admin-user
  namespace: kubernetes-dashboard
  annotations:
    kubernetes.io/service-account.name: "admin-user"   
type: kubernetes.io/service-account-token

```

- Recover token  
`kubectl get secret admin-user -n kubernetes-dashboard -o jsonpath={".data.token"} | base64 -d`

- Open Remote kubernetes dashboard:  
`http://PUBLIC_IP:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/#/login`

- **From the kubernetes login view I set the token recovered to login but the login button is always disable!!!**

### Cluster information:

Kubernetes version:

```auto
kubectl cluster-info

Kubernetes control plane is running at https://SERVER_IP:8443

CoreDNS is running at https://SERVER_IP:8443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.

```

Installation method: minikube  
Host OS: Debian 11  
CNI and version:  
CRI and version:

You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.
