Skip to content

Commit

Permalink
Merge pull request openshift#1060 from deads2k/ensure-readyz
Browse files Browse the repository at this point in the history
bug 1937916: add a flowschema to ensure that probes never get 429s
  • Loading branch information
openshift-merge-robot authored Mar 31, 2021
2 parents a58050f + 04d8d55 commit 00db34b
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 00db34b

Please sign in to comment.