-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Antrea works on Windows Node #331
Comments
@wenyingd I haven't taken a look at #372 and #373 yet, but what's the testing strategy for this? Do we have a K8s testbed with Windows Nodes and can we enable at least a subset of the tests we run on Linux as part of CI? @edwardbadboy @lzhecheng |
We need a K8S testbed with Windows Nodes as the worker nodes, and the master Node should be Linux node. Since K8S components(kubelet, kube-proxy), Antrea agent and OVS are working as processes on Windows node, we will provide a script to help deploy and run the processes in later PRs, and we also need a Windows node to run Windows specific and common test cases. For unit test and integration test, if the new test case is Windows specific, it should be placed in a file with "_windows_test" suffix. For existing cases, if the case is closely releveant with Linux, it should be moved to a "_linux_test" suffix file, otherwise the tests should be passed on Windows node. For CI test cases, I think we could refer to these e2e tests: https://github.com/kubernetes-sigs/windows-testing |
Currently, we don't have any Windows testbed :( |
this is awesome. i love this work and can't wait to talk about it in Kubernetes SIG-Windows.
|
@michmike thanks for the support.
|
Thanks @jianjuns for the answers. @michmike, for the qustions:
We plan to support Windows Server 2019 (1809) in first release because it's the latest LTS version. The newer versions of windows(1903+) currently are not in test scope. But I think we can verify Antrea on these versions after we complete the CI integration for windows. Thanks, |
@jianjuns "long term work" ... as in months or years ? :) i think getting off Hyper-v is emerging as a high priority for us . Is HyperV supported on AWS VMs ? If not, we won't be able to run antrea on windows in AWS. |
Hi @jayunit100 , I think the "long term work" means we need to wait OVS remove the dependency to hyper-v. Actually we already have private patches which support it but only be used in VMware product. I'm not sure when the patches could be ported to upstream OVS. Maybe Jianjun know more info about it.
I search the problem, but can find the answer from AWS official doc. It seems only baremetal instances on AWS has full hardware virtualization capabilities. |
i think we can use our good friends at cloudbase and Alin to help us push the fixes upstream in OVS. do we have anyone from antrea team involved in OVS community that can help here as well? |
We did talk to Alin, Ben, and Anand on these changes. @wenyingd can update the status. Probably let us discuss offline. |
lets sync about this at the antrea community meeting this wk, and then ill update this issue with details afterwards. Im also going to talk to @yasensim on wednseday |
Alin didnt want to merge the private patches into OVS upstream to disable hyper-v because he is working on a new implementation on v2 HCN API. Let me check the progress and update here. |
thanks , this is actually a blocker for us now so, anything we can do to help please let us know ! |
FWIW, we do have hyper-vless branches we can use now, but we just dont have them in a production ready context. @ruicao93 has details. |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment, or this will be closed in 180 days |
Describe what you are trying to solve
Antrea could be run on Windows as worker Nodes in the cluster.
Describe the solution you have in mind
Windows HNS Network is used to support the container networking, and "Transparent" is the chosen driver type.
For each Pod, a HNS Endpoint is created and attached on both the infra container and the workload container. The IP address of the HNS Endpoint is allocated by IPAM. The IPAM is leveraging host-local by default, which is the same as Antrea on Linux.
OVS Extension is enabled on the target HNS Network, and OpenFlow is used to implement container networking connectivity and Network Policy rules. Each HNS Endpoint has a single port added on the OVS bridge, which has the same name as the HNS Endpoint.
Routes for the cross-nodes connectivity are also needed to be setup on Windows host, and the routing configurations are similar to Antrea on Linux.
The physical networking interface which Windows Node uses to join the K8S cluster is adding on the OVS bridge as the uplink interface. And OpenFlow entries are added to support Winows host networking.
Named pipe is used for the communications between local processes, including, 1) antrea-agent v.s. OVSDB, 2) antrea-agent v.s. OF Switch 3) CNI plugin v.s. CNI server.
Describe how your solution impacts user flows
The work flows to enable Antrea on Windows should be:
Describe the main design/architecture of your solution
Please refer to the design doc:
https://docs.google.com/document/d/1lSis0XnKz8UcJSkxTgRtDhP2DAwQtcZDjT6ZRySUb48/edit?usp=sharing
Subtasks
- [ ] Register Windows Service for Antrea Agent [Not4Review][Windows] Create Windows Service for Antrea Agent #470TODO
The text was updated successfully, but these errors were encountered: