Skip to content

Assigning node taints to system nodepool not working anymore, failing with SystemPoolHasRestrictedTaint #2578

Closed

Description

Hello 😄

What happened: Creating system nodepools with node taints is not working since 2021-09-28, failing with the following error:

(SystemPoolHasRestrictedTaint) Operation failed due to insufficient nodes for system pod scheduling. Placing custom taints on system pool is not supported(except 'CriticalAddonsOnly' taint or taint effect is 'PreferNoSchedule'). Please refer to https://aka.ms/aks/system-taints for detail

What you expected to happen: System nodepool is created with the node taint applied.

How to reproduce it (as minimally and precisely as possible): Using the CLI:

az group create --name foo --location westeurope
az aks create --resource-group foo --name bar
az aks nodepool add --name nodepool2 --resource-group foo --cluster-name bar \
  --mode system --node-taints foo=bar:NoSchedule

Anything else we need to know?:

We recommend users to apply taint node.cilium.io/agent-not-ready=true:NoSchedule to nodepools when using cilium/cilium (CNI plugin) to prevent application pods from being managed by the default AKS CNI plugin.

We test this behaviour in our AKS CI, via an automated GitHub Actions workflow using the Azure CLI (see source command lines here).

Thanks!

Activity

  1. changed the title [-]Assigning node taints to system nodepool not working anymore, failing with `SystemPoolHasRestrictedTaint`[/-] [+]aks: assigning node taints to system nodepool not working anymore, failing with `SystemPoolHasRestrictedTaint`[/+] on Oct 1, 2021
  2. changed the title [-]aks: assigning node taints to system nodepool not working anymore, failing with `SystemPoolHasRestrictedTaint`[/-] [+]Assigning node taints to system nodepool not working anymore, failing with `SystemPoolHasRestrictedTaint`[/+] on Oct 1, 2021
  3. palma21 commented on Oct 1, 2021

    @palma21
    Member

    AKS System pools only allow 1 taint CriticalAddonsOnly=true:NoSchedule or soft taints, so that behavior is by design per the documentation.
    https://docs.microsoft.com/en-us/azure/aks/use-system-pools#system-and-user-node-pools

    AKS User pools support any taint.

    You can still any any taint manually via kubectl in a per node / temporary basis, but not to the node pool model/permanently.

    caveat: it is not possible to apply node taints to the initial nodepool of AKS clusters at creation time

    This is possible now, that linked issue is not just waiting for update taints to be supported.

  4. ghost removed on Oct 1, 2021
  5. nbusseneau commented on Oct 1, 2021

    @nbusseneau
    Author

    Jorge Palma (@palma21) Thanks for your answer.

    AKS System pools only allow 1 taint CriticalAddonsOnly=true:NoSchedule or soft taints

    Does that mean that when it was working (before 2021-09-28), this was actually not intended and should never have been working in the first place?

    If that is indeed the case, do you have any recommendation on pod management by third-party CNI plugins?

    so that behavior is by design per the documentation.

    Nit: I might have missed where this is specified, but I don't see where in the documentation it is specified that system nodepools can only use CriticalAddonsOnly=true:NoSchedule or soft taints => I would suggest clarifying this in the list of system nodepools restrictions.

    caveat: it is not possible to apply node taints to the initial nodepool of AKS clusters at creation time

    This is possible now, that linked issue is not just waiting for update taints to be supported.

    Oh, is it? I don't see --node-taints in the az aks create documentation, and it does not seem to work with CLI version 2.28.0. Am I missing something?

  6. ghost closed this as completedon Oct 4, 2021
  7. nbusseneau commented on Oct 4, 2021

    @nbusseneau
    Author

    I still had questions though... :/

  8. ghost locked as resolved and limited conversation to collaborators on Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions