<p>I was trying to install the Weave Cloud Agents for my minikube. I used the provided command</p>

<pre><code>curl -Ls https://get.weave.works |sh -s -- --token=xxx
</code></pre>

<p>but keep getting the following error: </p>

<blockquote>
  <p><em>There was an error while performing a DNS check: checking DNS failed, the DNS in the Kubernetes cluster is not working correctly. Please check that your cluster can download images and run pods</em>. </p>
</blockquote>

<p>I have following dns:</p>

<pre><code>kube-system   coredns-6955765f44-7zt4x                   1/1     Running            0          38m
kube-system   coredns-6955765f44-xdnd9                   1/1     Running            0          38m
</code></pre>

<p>I tried different suggestions such as <a href="https://www.jeffgeerling.com/blog/2019/debugging-networking-issues-multi-node-kubernetes-on-virtualbox" rel="nofollow noreferrer">https://www.jeffgeerling.com/blog/2019/debugging-networking-issues-multi-node-kubernetes-on-virtualbox</a> or <a href="https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/</a>. However none of them resolved my issue. </p>

<p>It seems to an issue which happened before <a href="https://github.com/weaveworks/launcher/issues/285" rel="nofollow noreferrer">https://github.com/weaveworks/launcher/issues/285</a>. </p>

<p>My Kubernetes is on v1.17.3</p>

<p>Reproduced you issue, have the same error.</p>

<pre><code>minikube v1.7.2 on Centos 7.7.1908
Docker 19.03.5
vm-driver=virtualbox

Connecting cluster to "Old Tree 34" (id: old-tree-34) on Weave Cloud
Installing Weave Cloud agents on minikube at https://192.168.99.100:8443
Performing a check of the Kubernetes installation setup.
There was an error while performing a DNS check: checking DNS failed, the DNS in the Kubernetes cluster is not working correctly. Please check that your cluster can download images and run pods.
</code></pre>

<p>I wasnt able to fix this problem, instead of that found a workaround - use <a href="https://github.com/helm/helm" rel="nofollow noreferrer">Helm</a>. You have second tab 'Helm 'in 'Install the Weave Cloud Agents' with provided command, like</p>

<pre><code>helm repo update &amp;&amp; helm upgrade --install --wait weave-cloud \
  --set token=xxx \
  --namespace weave \
  stable/weave-cloud
</code></pre>

<p>Lets install <a href="https://github.com/helm/helm" rel="nofollow noreferrer">Helm</a> and use it.</p>

<pre><code>curl https://raw.githubusercontent.com/helm/helm/master/scripts/get | bash
kubectl create serviceaccount --namespace kube-system tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
.....
Tiller (the Helm server-side component) has been installed into your Kubernetes Cluster.


helm repo update
helm upgrade --install --wait weave-cloud \
&gt;   --set token=xxx \
&gt;   --namespace weave \
&gt;   stable/weave-cloud



Release "weave-cloud" does not exist. Installing it now.    

NAME:   weave-cloud
LAST DEPLOYED: Thu Feb 13 14:52:45 2020
NAMESPACE: weave
STATUS: DEPLOYED

RESOURCES:
==&gt; v1/Deployment
NAME         AGE
weave-agent  35s

==&gt; v1/Pod(related)
NAME                          AGE
weave-agent-69fbf74889-dw77c  35s

==&gt; v1/Secret
NAME         AGE
weave-cloud  35s

==&gt; v1/ServiceAccount
NAME         AGE
weave-cloud  35s

==&gt; v1beta1/ClusterRole
NAME         AGE
weave-cloud  35s

==&gt; v1beta1/ClusterRoleBinding
NAME         AGE
weave-cloud  35s


NOTES:
Weave Cloud agents had been installed!

First, verify all Pods are running:

  kubectl get pods -n weave

Next, login to Weave Cloud (https://cloud.weave.works) and verify the agents are connect to your instance.

If you need help or have any question, join our Slack to chat to us – https://slack.weave.works.

Happy hacking!
</code></pre>

<p>Check(wait around 10 min to deploy everything):</p>

<pre><code>kubectl get pods -n weave
NAME                                        READY   STATUS    RESTARTS   AGE
kube-state-metrics-64599b7996-d8pnw         1/1     Running   0          29m
prom-node-exporter-2lwbn                    1/1     Running   0          29m
prometheus-5586cdd667-dtdqq                 2/2     Running   0          29m
weave-agent-6c77dbc569-xc9qx                1/1     Running   0          29m
weave-flux-agent-65cb4694d8-sllks           1/1     Running   0          29m
weave-flux-memcached-676f88fcf7-ktwnp       1/1     Running   0          29m
weave-scope-agent-7lgll                     1/1     Running   0          29m
weave-scope-cluster-agent-8fb596b6b-mddv8   1/1     Running   0          29m
[vkryvoruchko@nested-vm-image1 bin]$ kubectl get all -n weave
NAME                                            READY   STATUS    RESTARTS   AGE
pod/kube-state-metrics-64599b7996-d8pnw         1/1     Running   0          30m
pod/prom-node-exporter-2lwbn                    1/1     Running   0          30m
pod/prometheus-5586cdd667-dtdqq                 2/2     Running   0          30m
pod/weave-agent-6c77dbc569-xc9qx                1/1     Running   0          30m
pod/weave-flux-agent-65cb4694d8-sllks           1/1     Running   0          30m
pod/weave-flux-memcached-676f88fcf7-ktwnp       1/1     Running   0          30m
pod/weave-scope-agent-7lgll                     1/1     Running   0          30m
pod/weave-scope-cluster-agent-8fb596b6b-mddv8   1/1     Running   0          30m

NAME                           TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)     AGE
service/prometheus             ClusterIP   10.108.197.29   &lt;none&gt;        80/TCP      30m
service/weave-flux-memcached   ClusterIP   None            &lt;none&gt;        11211/TCP   30m

NAME                                DESIRED   CURRENT   READY   UP-TO-DATE   AVAILABLE   NODE SELECTOR   AGE
daemonset.apps/prom-node-exporter   1         1         1       1            1           &lt;none&gt;          30m
daemonset.apps/weave-scope-agent    1         1         1       1            1           &lt;none&gt;          30m

NAME                                        READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/kube-state-metrics          1/1     1            1           30m
deployment.apps/prometheus                  1/1     1            1           30m
deployment.apps/weave-agent                 1/1     1            1           31m
deployment.apps/weave-flux-agent            1/1     1            1           30m
deployment.apps/weave-flux-memcached        1/1     1            1           30m
deployment.apps/weave-scope-cluster-agent   1/1     1            1           30m

NAME                                                  DESIRED   CURRENT   READY   AGE
replicaset.apps/kube-state-metrics-64599b7996         1         1         1       30m
replicaset.apps/prometheus-5586cdd667                 1         1         1       30m
replicaset.apps/weave-agent-69fbf74889                0         0         0       31m
replicaset.apps/weave-agent-6c77dbc569                1         1         1       30m
replicaset.apps/weave-flux-agent-65cb4694d8           1         1         1       30m
replicaset.apps/weave-flux-memcached-676f88fcf7       1         1         1       30m
replicaset.apps/weave-scope-cluster-agent-8fb596b6b   1         1         1       30m
</code></pre>

<p>Login to <a href="https://cloud.weave.works/" rel="nofollow noreferrer">https://cloud.weave.works/</a> and check the same:</p>

<pre><code>Started installing agents on Kubernetes cluster v1.17.2
All Weave Cloud agents are connected!
</code></pre>

<p><a href="https://i.stack.imgur.com/PDHsX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PDHsX.png" alt="enter image description here"></a></p>
