2

We are trying to create namespace with specific node pool. How to achieve that on Azure Kubernetes?

error: Unable to create namespace with specific node pool.
Ex: namespace for user nodepool1
1

1 Answer 1

3

Posting this as a community wiki, feel free to edit and expend it.

As Luca Ghersi mentioned in comments, it's possible to have namespaces assigned to a specific nodes. For this matter there's an admission controller PodNodeSelector (you can read about it on kubernetes official documentation).

In short words:

This admission controller defaults and limits what node selectors may be used within a namespace by reading a namespace annotation and a global configuration.

Based on Azure FAQ, Azure AKS has this admission controller enabled by default.

AKS supports the following admission controllers:

- NamespaceLifecycle
- LimitRanger
- ServiceAccount
- DefaultStorageClass
- DefaultTolerationSeconds
- MutatingAdmissionWebhook
- ValidatingAdmissionWebhook
- ResourceQuota
- PodNodeSelector
- PodTolerationRestriction
- ExtendedResourceToleration

Currently, you can't modify the list of admission controllers in AKS.
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.