<p>I have 3 node kubernetes cluster with 2 linux ( 1 master &amp; 1 worker ) and 1 windows server 2019 core virtual machines. I tried to deploy windows application on that but is giving error <code>network: read /run/flannel/subnet.env: The handle is invalid.</code></p>

<p>I tried by doing this:   </p>

<pre><code>kubeadm init  --pod-network-cidr=10.244.0.0/16
</code></pre>

<p>I can deploy linux applications only problem with windows applications. Pods are scheduling to the windows worker node but none of them are running, all are in container creating state. When I check the logs above is the error for every pod.   </p>

<p>Below is the output of <code>.\flanneld.exe</code> on Windows VM:</p>

<pre><code>&gt; I0410 15:07:01.699217   11704 main.go:514] Determining IP address of default interface I0410 15:07:02.023840   11704 main.go:527] Using
&gt; interface with name vEthernet (Ethernet0) and address &lt;IP Address&gt;  
&gt; I0410 15:07:02.023840   11704 main.go:544] Defaulting external address
&gt; to interface address (&lt;IP Address&gt;) E0410 15:07:02.026800   11704
&gt; main.go:605] Couldn't fetch previous FLANNEL_SUBNET from subnet file
&gt; at /run/flannel/subnet.env: read /run/flannel/subnet.env: The handle
&gt; is invalid. I0410 15:07:02.026800   11704 main.go:244] Created subnet
&gt; manager: Etcd Local Manager with Previous Subnet: None I0410
&gt; 15:07:02.027804   11704 main.go:247] Installing signal handlers E0410
&gt; 15:07:04.034674   11704 main.go:382] Couldn't fetch network config:
&gt; client: etcd cluster is unavailable or misconfigured; error #0: dial
&gt; tcp 127.0.0.1:2379: connectex: No connection could be made because the
&gt; target machine actively refused it. ; error #1: dial tcp
&gt; 127.0.0.1:4001: i/o timeout timed out E0410 15:08:14.027848   11704 main.go:382] Couldn't fetch network config: client: etcd cluster is
&gt; unavailable or misconfigured; error #0: dial tcp 127.0.0.1:2379: i/o
&gt; timeout ; error #1: dial tcp 127.0.0.1:4001: i/o timeout timed out
&gt; E0410 15:08:17.053635   11704 main.go:382] Couldn't fetch network
&gt; config: client: etcd cluster is unavailable or misconfigured; error
&gt; #0: dial tcp 127.0.0.1:2379: i/o timeout ; error #1: dial tcp 127.0.0.1:4001: i/o timeout
</code></pre>

<p>Output of <code>C:\run\flannel\subnet.exe</code>:</p>

<pre><code>&gt; FLANNEL_NETWORK=10.244.0.0/16 
&gt; FLANNEL_SUBNET=10.244.1.1/24
&gt; FLANNEL_MTU=1450 
&gt; FLANNEL_IPMASQ=true
</code></pre>

Priyanka
<p>I have resolved it by redeploying flannel on windows because first when I deployed it /run/flannel/subnet.env was not there then I manually created /run/flannel/subnet.env and kept the info as I mentioned above. Later I tried to deploy windows application on cluster again got an error flanneld service is misconfigured. so i have redeployed it.</p>
