@@ -162,7 +162,7 @@ are built in and may not be overwritten:
162
162
that only matches the ` catch-all ` FlowSchema will be rejected with an HTTP 429
163
163
error.
164
164
165
- ## Potentially interesting additional configuration
165
+ ## Health check concurrency exemption
166
166
167
167
The suggested configuration gives no special treatment to the health
168
168
check requests on kube-apiservers from their local kubelets --- which
@@ -171,32 +171,21 @@ suggested config, these requests get assigned to the `global-default`
171
171
FlowSchema and the corresponding ` global-default ` priority level,
172
172
where other traffic can crowd them out.
173
173
174
- Adding the following additional FlowSchema will cause those requests
175
- to be exempt from limiting. Unfortunately, any hostile party could
176
- submit requests matching this FlowSchema.
177
-
178
- ``` yaml
179
- apiVersion : flowcontrol.apiserver.k8s.io/v1alpha1
180
- kind : FlowSchema
181
- metadata :
182
- name : health-for-strangers
183
- spec :
184
- matchingPrecedence : 1000
185
- priorityLevelConfiguration :
186
- name : exempt
187
- rules :
188
- - nonResourceRules :
189
- - nonResourceURLs :
190
- - " /healthz"
191
- - " /livez"
192
- - " /readyz"
193
- verbs :
194
- - " *"
195
- subjects :
196
- - kind : Group
197
- group :
198
- name : system:unauthenticated
199
- ` ` `
174
+ If you add the following additional FlowSchema, this exempts those
175
+ requests from rate limiting.
176
+
177
+ {{< caution >}}
178
+
179
+ Making this change also allows any hostile party to then send
180
+ health-check requests that match this FlowSchema, at any volume they
181
+ like. If you have a web traffic filter or similar external security
182
+ mechanism to protect your cluster's API server from general internet
183
+ traffic, you can configure rules to block any health check requests
184
+ that originate from outside your cluster.
185
+
186
+ {{< /caution >}}
187
+
188
+ {{< codenew file="priority-and-fairness/health-for-strangers.yaml" >}}
200
189
201
190
## Resources
202
191
The flow control API involves two kinds of resources.
0 commit comments