title: Unable to access kubernetes Dashboard running on AWS EC2 Instance
body: <p>I am new to <code>Kubernetes</code> cluster setup. I have a Kubernetes setup running on <code>AWS EC2</code> instance with <code>RHEL 8</code>. I had tried to access Kubernetes dashboard via localhost but its not working.</p>
  
  <p>1.I had setup kubernetes cluster on AWS EC2 Instance using kubeadm.
  2.I am able to deploy pods in the cluster.
  3.Deployed Kubernetes dashboard and trying to access it via localhost and from outside but i am not getting the dashboard login window.
  4.Tried with cluster IP,changed to NodePort and LoadBalancer.
  5.Able to run kubectl proxy and getting kubectl cluster-info.</p>
  
  <p>Please anyone guide me how to deploy and access kubernetes dashboard from AWS EC2 Instance.</p>
  
  <p>Thanks in Advance</p>
  
  <pre><code>[root@managernode ~]# cat kubernetes-dashboard.yaml
  ---
  apiVersion: v1
  kind: ServiceAccount
  metadata:
    labels:
      k8s-app: kubernetes-dashboard
      kubernetes.io/cluster-service: "true"
      addonmanager.kubernetes.io/mode: Reconcile
    name: kubernetes-dashboard-admin
    namespace: kube-system
  
  [root@managernode ~]# kubectl get pods --namespace=kube-system
  NAME                                       READY   STATUS    RESTARTS   AGE
  calico-kube-controllers-564b6667d7-qglhj   1/1     Running   0          22h
  calico-node-4cpv9                          1/1     Running   0          22h
  coredns-5644d7b6d9-c8vj4                   1/1     Running   0          22h
  coredns-5644d7b6d9-l8qft                   1/1     Running   0          22h
  etcd-managernode                           1/1     Running   0          22h
  kube-apiserver-managernode                 1/1     Running   0          22h
  kube-controller-manager-managernode        1/1     Running   0          22h
  kube-proxy-fhfk7                           1/1     Running   0          22h
  kube-scheduler-managernode                 1/1     Running   0          22h
  kubernetes-dashboard-7c54d59f66-gvslw      1/1     Running   0          22h
  
  [root@managernode ~]# kubectl proxy
  Starting to serve on 127.0.0.1:8001
  </code></pre>