<p>I have two servers with k3s setup. I have install <a href="https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/" rel="nofollow noreferrer">k8s-dashboard</a> on server1.</p>
<p>I have setup <a href="https://stackoverflow.com/questions/36306904/configure-kubectl-command-to-access-remote-kubernetes-cluster-on-azure">clustering</a> in server1 i.e. I can access k8s resources of server2 from server1.</p>
<pre><code>kubectl config set-cluster server2 --server=https://{IP_OF_SERVER2}:6443
kubectl config set-context server2 --cluster=server2
kubectl config use-context server2
</code></pre>
<p>But I want to access all resources of server2 from k8s dashboard of server1.</p>
<p>Is this possible to do?</p>

<p>First, The Kubernetes dashboard needs to query <a href="https://github.com/kubernetes-sigs/dashboard-metrics-scraper" rel="nofollow noreferrer">dashboard-metrics-scraper</a>, so you will need to install that before linking the dashboard UI with <code>scraper</code>.</p>
<p>Second from the code, it does not look like it accept array, but accept string.</p>
<pre><code># Metrics Scraper sidecar host for dashboard
K8S_DASHBOARD_SIDECAR_HOST=${K8S_DASHBOARD_SIDECAR_HOST:-&quot;http://localhost:8000&quot;}
</code></pre>
<p><a href="https://github.com/kubernetes/dashboard/blob/1148f7ba9f9eadd719e53fa3bc8bde5b7cfdb395/aio/develop/run-npm-on-container.sh#L62" rel="nofollow noreferrer">Scraper sidecar</a></p>
<p><a href="https://github.com/kubernetes/dashboard/blob/1148f7ba9f9eadd719e53fa3bc8bde5b7cfdb395/aio/develop/run-npm-on-container.sh#L98" rel="nofollow noreferrer">docker-env</a></p>
<p>So you will need deploy Metrics Scraper sidecar on the cluster 2 and then you will need to expose the service and might need two instance of the dashboard.</p>
<p>so better to create dashboards on its own cluster.</p>
