<p>Because some of my pods get stuck, I want to recreate a DaemonSet and a few security-related resources created by Weave Net plugin during kubeadm bootstrap. <a href="https://i.stack.imgur.com/e1wN1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e1wN1.png" alt="enter image description here"></a>
I used the <code>kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"</code> command several times, but the pod status didn't change.</p>

X. Wang
<p>Here is the command to install Weave Net for Kubernetes cluster version 1.6+ (just to have a complete answer):</p>

<pre><code>$ kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"
</code></pre>

<p>To delete all those resources, run the following command:</p>

<pre><code>$ kubectl delete -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"
</code></pre>

<p>To have more information about the root cause of the problem, check the state of pods: </p>

<pre><code>$ kubectl describe pod weave-net-xspgn

$ kubectl describe pod kube-dns-86f4d74b45-9t4mj

$ kubectl describe pod kube-proxy-2gjj4
</code></pre>

<p>The kubelet log can also be very helpful:</p>

<pre><code># journalctl -u kubelet
</code></pre>
