Skip to content

Commit 71146ae

Browse files
authored
Merge pull request #112293 from mlearned/mdl-1710141-faq-admiisson-controllers
admissions controller ignore kube-system to faq
2 parents 98ea6dc + 0048245 commit 71146ae

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

articles/aks/faq.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,25 @@ AKS supports the following [admission controllers][admission-controllers]:
9393

9494
Currently, you can't modify the list of admission controllers in AKS.
9595

96+
## Can I use admission controller webhooks on AKS?
97+
98+
Yes, you may use admission controller webhooks on AKS. It is recommended you exclude internal AKS namespaces which are marked with the **control-plane label.** For example, by adding the below to the webhook configuration:
99+
100+
```
101+
namespaceSelector:
102+
matchExpressions:
103+
- key: control-plane
104+
operator: DoesNotExist
105+
```
106+
107+
## Can admission controller webhooks impact kube-system and internal AKS namespaces?
108+
109+
To protect the stability of the system and prevent custom admission controllers from impacting internal services in the kube-system, namespace AKS has an **Admissions Enforcer**, which automatically excludes kube-system and AKS internal namespaces. This service ensures the custom admission controllers don't affect the services running in kube-system.
110+
111+
If you have a critical use case for having something deployed on kube-system (not recommended) which you require to be covered by your custom admission webhook, you may add the below label or annotation so that Admissions Enforcer ignores it.
112+
113+
Label: ```"admissions.enforcer/disabled": "true"``` or Annotation: ```"admissions.enforcer/disabled": true```
114+
96115
## Is Azure Key Vault integrated with AKS?
97116

98117
AKS isn't currently natively integrated with Azure Key Vault. However, the [Azure Key Vault FlexVolume for Kubernetes project][keyvault-flexvolume] enables direct integration from Kubernetes pods to Key Vault secrets.

0 commit comments

Comments
 (0)