PrimeHub-admission is a critical component of PrimeHub.
PrimeHub-admission utilized Dynamic Admission Control of Kubernetes to implement several PrimeHub features, including:
- Resource validation, check if certain group/user exceeds the given resource limit.
- PVC check - Check if a PVC is no longer exists before user pod is allocated.
- Image mutation - Modify image prefix for air-gapped environment.
- License Check - Check if a License is valid for current platform.
You can specify which primehub-admission features to enable by giving the corresponding label to the Kubernetes namespace.
# To enable Resource validation, PVC check, and License Check
kubectl label ns hub primehub.io/admission-webhook=enabled
# To enable Image mutation
kubectl label ns hub primehub.io/image-mutation-webhook=enabled
To deploy PrimeHub-Admission as a Kubernetes component, please check PrimeHub HelmChart.