File tree 1 file changed +14
-0
lines changed
staging/src/k8s.io/apiserver/pkg/apis/flowcontrol/bootstrap
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 64
64
}
65
65
SuggestedFlowSchemas = []* flowcontrol.FlowSchema {
66
66
SuggestedFlowSchemaSystemNodes , // references "system" priority-level
67
+ SuggestedFlowSchemaProbes , // references "exempt" priority-level
67
68
SuggestedFlowSchemaSystemLeaderElection , // references "leader-election" priority-level
68
69
SuggestedFlowSchemaWorkloadLeaderElection , // references "leader-election" priority-level
69
70
SuggestedFlowSchemaKubeControllerManager , // references "workload-high" priority-level
@@ -394,6 +395,19 @@ var (
394
395
},
395
396
},
396
397
)
398
+ // the following flow schema exempts probes
399
+ SuggestedFlowSchemaProbes = newFlowSchema (
400
+ "probes" , "exempt" , 2 ,
401
+ "" , // distinguisherMethodType
402
+ flowcontrol.PolicyRulesWithSubjects {
403
+ Subjects : groups (user .AllUnauthenticated , user .AllAuthenticated ),
404
+ NonResourceRules : []flowcontrol.NonResourcePolicyRule {
405
+ nonResourceRule (
406
+ []string {"get" },
407
+ []string {"/healthz" , "/readyz" , "/livez" }),
408
+ },
409
+ },
410
+ )
397
411
)
398
412
399
413
func newPriorityLevelConfiguration (name string , spec flowcontrol.PriorityLevelConfigurationSpec ) * flowcontrol.PriorityLevelConfiguration {
You can’t perform that action at this time.
0 commit comments