sig-windows-tools icon indicating copy to clipboard operation
sig-windows-tools copied to clipboard

windows pod error while running flannel hostprocess on windows 2022

Open rituzzzpilot opened this issue 3 years ago • 0 comments
trafficstars

Describe the bug When I deploy windows sample container I got error: Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "7b785a7675d04fb8c0fa9423c344f870ae02dfc635b52f869985c21c73f77d30": plugin type="nat" name="nat" failed (add): hcnCreateNetwork failed in Win32: The object already exists. (0x1392) {"Success":false,"Error":"The object already exists. ","ErrorCode":2147947410}

To Reproduce setup cluster with kubespray, add windows node via Install-Containerd.ps1 and PrepareNode.ps1, deploy kube-proxy.yml and flannel-host-gw.yml, pods are successfully started and windows node get ip

Expected behavior windows container successfully started on windows host

Kubernetes (please complete the following information):

  • Windows Server version: 2022 lts
  • Kubernetes Version: 1.24.3
  • CNI: flannel host-gw
  • containerd - 1.6.6

Additional context Here my flannel-host-gw.yml and kube-proxy.yml flannel-config.zip

rituzzzpilot avatar Sep 08 '22 07:09 rituzzzpilot