Skip to content

Conversation

@rayaisaiah
Copy link
Contributor

@rayaisaiah rayaisaiah commented Apr 29, 2025

Reason for Change:
Removes the hostUsers: false setting in the NPM daemonset. Reverts from changes #2589

Also adds a public-ip and service tag to NPM scale and conformance tests to comply with SFI rules (failing with RequestDisallowedByPolicy otherwise).

Issue Fixed:
From https://kubernetes.io/docs/concepts/workloads/pods/user-namespaces/#limitations

When using a user namespace for the pod, it is disallowed to use other host namespaces. In particular, if you set hostUsers: false then you are not allowed to set any of:

hostNetwork: true
hostIPC: true
hostPID: true

Requirements:

Notes:

Copilot AI review requested due to automatic review settings April 29, 2025 17:43
@rayaisaiah rayaisaiah requested a review from a team as a code owner April 29, 2025 17:43
@rayaisaiah rayaisaiah requested a review from vakalapa April 29, 2025 17:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request reverts a previous change that removed the hostUsers configuration in the NPM daemonset, thereby restoring compatibility with user namespace restrictions when using hostNetwork.

  • Reverts removal of "hostUsers: false" in both azure-npm-lite.yaml and azure-npm.yaml
  • Restores original daemonset settings to comply with Kubernetes pod user namespace requirements

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
npm/examples/azure-npm-lite.yaml Re-added "hostUsers: false" to revert previous changes
npm/azure-npm.yaml Re-added "hostUsers: false" to revert previous changes

@rayaisaiah rayaisaiah added npm Related to NPM. linux labels Apr 29, 2025
@rayaisaiah
Copy link
Contributor Author

/azp run Azure Container Networking PR
/azp run NPM Conformance Tests
/azp run NPM Scale Test

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@rayaisaiah
Copy link
Contributor Author

/azp run Azure Container Networking PR

@rayaisaiah
Copy link
Contributor Author

/azp run NPM Conformance Tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rayaisaiah
Copy link
Contributor Author

/azp run NPM Scale Test

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rayaisaiah rayaisaiah enabled auto-merge April 29, 2025 17:58
huntergregory
huntergregory previously approved these changes Apr 29, 2025
vakalapa
vakalapa previously approved these changes Apr 29, 2025
@rayaisaiah rayaisaiah disabled auto-merge April 29, 2025 18:27
@rayaisaiah rayaisaiah dismissed stale reviews from vakalapa and huntergregory via 77fed05 April 30, 2025 18:00
@rayaisaiah rayaisaiah requested a review from a team as a code owner April 30, 2025 18:00
@rayaisaiah
Copy link
Contributor Author

/azp run Azure Container Networking PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rayaisaiah
Copy link
Contributor Author

/azp run Azure Container Networking PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rayaisaiah
Copy link
Contributor Author

/azp run Azure Container Networking PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rayaisaiah rayaisaiah added this pull request to the merge queue May 2, 2025
Merged via the queue into master with commit c5b409c May 2, 2025
19 of 20 checks passed
@rayaisaiah rayaisaiah deleted the isaiahraya/removeHostUsersNPM branch May 2, 2025 19:47
sivakami-projects pushed a commit that referenced this pull request Oct 23, 2025
* removed hostusers misconfigruation

* added public ip and service tag to compile to SFI rules

* test

* fixed errors in bash

* added  --load-balancer-sku standard

* added profile to public ip name

* found issue removing unused config

* updated name so that it has a unique public ip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

linux npm Related to NPM.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants