Skip to content
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

feat: [NPM] Adding Npm Lite #3005

Merged
merged 46 commits into from
Oct 1, 2024
Merged

feat: [NPM] Adding Npm Lite #3005

merged 46 commits into from
Oct 1, 2024

Conversation

rejain456
Copy link
Contributor

@rejain456 rejain456 commented Sep 10, 2024

Reason for Change:

This pr adds code changes for a new feature called NPM-Lite which is a subset of NPM.
NPM Lite provides Singularity team with a “light” NPM which addresses:

  • Heavy load on API Server: NPM Lite must support ~4K Nodes (NPM currently supports ~250 Nodes).
  • Windows NPM performance issues caused by HNS SetPolicies.
  • Issue Fixed:

npm lite consists of 2 main limitations:

  • Only accepts CIDR-based network policies
  • Enables the daemon set to watch for pods only under its node

This pr adds code to cover both the points above

Testing
image

Issue Fixed:

Requirements:

Notes:

@rejain456 rejain456 requested a review from a team as a code owner September 10, 2024 22:45
@rejain456
Copy link
Contributor Author

/azp run NPM Conformance Tests

@rejain456
Copy link
Contributor Author

/azp run NPM Scale Test

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rejain456
Copy link
Contributor Author

/azp run Azure Container Networking PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@huntergregory huntergregory left a comment

Choose a reason for hiding this comment

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

Realizing an edge case, and we'll have to be careful with reading in the config.

Also for testing, could you add to the PR description steps or screenshots for how you verified that a non-CIDR policy throws an error, and how you verified that applying a CIDR policy correctly blocks / allows traffic?

npm/pkg/controlplane/translation/translatePolicy.go Outdated Show resolved Hide resolved
npm/pkg/controlplane/translation/translatePolicy.go Outdated Show resolved Hide resolved
npm/pkg/controlplane/translation/translatePolicy.go Outdated Show resolved Hide resolved
npm/pkg/controlplane/translation/translatePolicy_test.go Outdated Show resolved Hide resolved
npm/pkg/controlplane/translation/translatePolicy.go Outdated Show resolved Hide resolved
Copy link
Contributor

@huntergregory huntergregory left a comment

Choose a reason for hiding this comment

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

minor suggestions

Copy link
Contributor

@huntergregory huntergregory left a comment

Choose a reason for hiding this comment

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

Realizing that NPM Lite cannot support "named port" fields... We will need to check for that too

npm/pkg/controlplane/translation/translatePolicy.go Outdated Show resolved Hide resolved
huntergregory
huntergregory previously approved these changes Sep 16, 2024
npm/azure-npm.yaml Outdated Show resolved Hide resolved
@rejain456
Copy link
Contributor Author

/azp run NPM Conformance Tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rejain456
Copy link
Contributor Author

/azp run Azure Container Networking PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rejain456
Copy link
Contributor Author

/azp run NPM Conformance Tests

@rejain456
Copy link
Contributor Author

/azp run NPM Scale Test

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rejain456
Copy link
Contributor Author

/azp run Azure Container Networking PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@huntergregory huntergregory left a comment

Choose a reason for hiding this comment

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

great job! 🚀

@vakalapa vakalapa added this pull request to the merge queue Sep 30, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 30, 2024
@rejain456 rejain456 added this pull request to the merge queue Sep 30, 2024
Merged via the queue into master with commit fb6f1b5 Oct 1, 2024
18 checks passed
@rejain456 rejain456 deleted the jainriya/AddingNpmLite branch October 1, 2024 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linux npm Related to NPM. windows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants