I am not sure whether my setup is too unique, but I can't seem to find relevant information about the right way to do this. I will try to share my setup in details.
I installed a KIND cluster on my AWS EC2, and I install metrics-server and kubernetes-dashboard using helm.
ubuntu@sig-apac-ec2:~$ k get svc -n kubernetes-dashboard
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes-dashboard NodePort 10.96.45.161 <none> 443:30130/TCP 140m
Then I tried to enable proxy with
$kubectl proxy --address 0.0.0.0 --accept-hosts '.*'
Starting to serve on [::]:8001
Then add port 8001 on my EC2 security group, when I navigate to URL http://x-x-x-x.ap-southeast-1.compute.amazonaws.com:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:443/proxy/#/login
what is the simplest way for me to access kubernetes dashboard remotely in my situation? this is just for experiment, so I understand and will accept some risk here.