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
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
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.