This post is about the new Kubernetes API Priority and Fairness (APF) feature. I will like to share with you what I have learned and show you how to define policies to prioritize and throttle inbound requests to the Kubernetes API server. Then I will also go over some metrics and debugging endpoints that you can use to determine if APF is affecting your controllers.
🆕 APF is enabled by default in Kubernetes 1.20, as a beta feature. For earlier versions of Kubernetes, it can be enabled via the APIPriorityAndFairness
feature gate.