Skip to content

Commit

Permalink
add a flowschema to ensure that probes never get 429s
Browse files Browse the repository at this point in the history
  • Loading branch information
deads2k authored and openshift-cherrypick-robot committed Mar 31, 2021
1 parent 60dc437 commit 8bdb5cf
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions manifests/0000_20_kube-apiserver-operator_08_flowschema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,31 @@ spec:
serviceAccount:
name: kube-apiserver-operator
namespace: openshift-kube-apiserver-operator
---
# probes need to always work. If probes get 429s, then the kubelet will treat them as probe failures.
# Since probes are cheap to run, we won't rate limit these at all.
apiVersion: flowcontrol.apiserver.k8s.io/v1beta1
kind: FlowSchema
metadata:
name: probes
spec:
distinguisherMethod:
type: ByUser
matchingPrecedence: 2
priorityLevelConfiguration:
name: exempt
rules:
- nonResourceRules:
- nonResourceURLs:
- '/healthz'
- '/readyz'
- '/livez'
verbs:
- 'get'
subjects:
- group:
name: system:authenticated
kind: Group
- group:
name: system:unauthenticated
kind: Group

0 comments on commit 8bdb5cf

Please sign in to comment.