Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Install azure-vnet CNI plugin on K8S Windows agents #1505

Closed
wants to merge 1 commit into from

Conversation

ofiliz
Copy link
Contributor

@ofiliz ofiliz commented Sep 27, 2017

What this PR does / why we need it:

This PR adds the logic to download, install and configure Azure VNET CNI plugins on Kubernetes Windows nodes. It brings Windows nodes to CNI-networking parity with Linux nodes in Kubernetes.

It also adds support for the "maxPods" kubelet parameter on Windows nodes.

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #1504

Special notes for your reviewer:
This PR updates kuberneteswindowssetup.ps1 (runs on Windows nodes first boot) with the same logic in kubernetesmastercustomscript.sh (runs on Linux nodes first boot).

I am marking the PR "do-not-merge" for now, because

  1. This PR requires Add VnetIntegration switch to Kubernetes #1480 to be merged first.
  2. Azure VNET CNI plugin requires Windows Server 2016 RS3 release, which is not yet available as a VM image in Azure. Windows team may also require some changes on top of this PR to enable full functionality.

Release note:

@anhowe, @lachie83, @nisheeth-ms, @sharmasushant, @tamilmani1989, @dineshgovindasamy

fixes #1504.

@msftclas
Copy link

msftclas commented Sep 27, 2017

CLA assistant check
All CLA requirements met.


$global:NetworkPolicy = "{{WrapAsVariable "networkPolicy"}}"
$global:VnetIntegration = "{{WrapAsVariable "vnetIntegration"}}"
$global:VNetCNIPluginsURL = "{{WrapAsVariable "vnetCniWindowsPluginsURL"}}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the default value of this URL and how is the plugin zip uploaded/tested?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default value is specified in:

VnetCNIWindowsPluginsDownloadURL: "https://acs-mirror.azureedge.net/cni/azure-vnet-cni-windows-amd64-latest.zip",

It is up to you to decide which version to upload to your ACS mirror. I believe Dmitry has some test coverage, in addition to the unit tests in the CNI plugin repo.

@ofiliz
Copy link
Contributor Author

ofiliz commented Sep 29, 2017

@JiangtianLi Please mark this PR with "do-not-merge". It should not be merged until Windows team can test it with RS3 builds and make any necessary modifications in kuberneteswindowssetup.ps1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate Azure-VNET CNI plugin to Kubernetes Windows nodes
5 participants