I will setup Kubernetes Dashboard on Floucloud they one of Cloud Provider in Indonesia, you can see all services they provide in https://floucloud.id

1. Install Kubernetes Dashboard

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

2. Edit Service type using NodePort or LoadBalancer

kubectl -n kubernetes-dashboard edit service kubernetes-dashboard

3. Create this file to create admin user, dashboard-admin.yaml

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

4. kubectl apply -f dashboard-admin.yaml

5. Get admin Token to login

kubectl get secret -n kubernetes-dashboard $(kubectl get serviceaccount admin-user -n kubernetes-dashboard -o jsonpath="{.secrets[0].name}") -o jsonpath="{.data.token}" | base64 --decode