Skip to content

Conversation

@JungukCho
Copy link
Contributor

Reason for Change:

PodController in NPM removes ipset information as soon as Pod's status becomes “Terminating”.
So, even though terminated Pod has some activities (e.g., sending traffic to other pods to notify something) during "Terminating" status, NPM does not allow this connection from the Pod.
Thus, NPM needs to delay cleanup process until Pod completes graceful shutdown.

Issue Fixed:

Fixes #1066

Requirements:

Notes:
Previous PR for v1 - feat: [NPM] Support graceful shutdown in pod #1083

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.

Looks good if k8slabels.Equals() has community support

@JungukCho JungukCho merged commit 76e7531 into Azure:master Nov 11, 2021
matmerr pushed a commit to matmerr/azure-container-networking that referenced this pull request Nov 11, 2021
* Use official k8s equals functions for label instead of our own implementation

* Update v2 pod controller to support graceful shutdown of pod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement npm Related to NPM.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NPM blocks graceful shutdown connections for pods in Terminating state

2 participants