<p>I have started 2 ubuntu 16 EC2 instance(one for master and other for worker). Everything working OK. 
I need to setup dashboard to view on my machine. I have copied admin.ctl and executed the script in my machine's terminal</p>

<pre><code> kubectl --kubeconfig ./admin.conf proxy --address='0.0.0.0' --port=8002 --accept-hosts='.*' 
</code></pre>

<p>Everything is fine.
But in browser when I use below link  </p>

<pre><code>http://localhost:8002/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/
</code></pre>

<p>I am getting Error: 'dial tcp 192.168.1.23:8443: i/o timeout'
Trying to reach: '<a href="https://192.168.1.23:8443/" rel="nofollow noreferrer">https://192.168.1.23:8443/</a>'</p>

<p>I have enabled all traffics in security policy for aws. What am I missing? Please point me a solution</p>

<p>If you only want to reach the dashboard then it is pretty easy, get the IP address of your EC2 instance and the Port on which it is serving dashboard (<code>kubectl get services --all-namespaces</code>) and then reach it using:
First:</p>

<p><code>kubectl proxy --address 0.0.0.0 --accept-hosts '.*'</code></p>

<p>And in your browswer:</p>

<p><code>http://&lt;IP&gt;:&lt;PORT&gt;/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/login</code></p>

<p><strong>Note that this is a possible security vulnerability as you are  accepting all traffic</strong> (AWS firewall rules) and also all connections for your <code>kubectl proxy</code> (<code>--address 0.0.0.0 --accept-hosts '.*'</code>) so please narrow it down or use different approach. If you have more questions feel free to ask. </p>
