@@ -114,7 +114,8 @@ Add a configuration format having specific precedence order and defined failure
114
114
apiVersion : apiserver.config.k8s.io/v1alpha1
115
115
kind : AuthorizationConfiguration
116
116
authorizers :
117
- - type : Webhook
117
+ - name : system-webhook
118
+ type : Webhook
118
119
webhook :
119
120
unauthorizedTTL : 30s
120
121
timeout : 3s
@@ -132,7 +133,8 @@ authorizers:
132
133
- expression : !('system:serviceaccounts:kube-system' in request.user.groups)
133
134
- type : Node
134
135
- type : RBAC
135
- - type : Webhook
136
+ - name : internal
137
+ type : Webhook
136
138
webhook :
137
139
authorizedTTL : 5m
138
140
unauthorizedTTL : 30s
@@ -212,7 +214,8 @@ The below example is only for demonstration purposes.
212
214
apiVersion: apiserver.config.k8s.io/v1alpha1
213
215
kind: AuthorizationConfiguration
214
216
authorizers:
215
- - type: Webhook
217
+ - name: system-webhook
218
+ type: Webhook
216
219
webhook:
217
220
unauthorizedTTL: 30s
218
221
timeout: 3s
@@ -230,7 +233,8 @@ authorizers:
230
233
- expression: !('system:serviceaccounts:kube-system' in request.user.groups)
231
234
- type: Node
232
235
- type: RBAC
233
- - type: Webhook
236
+ - name: opa
237
+ type: Webhook
234
238
webhook:
235
239
unauthorizedTTL: 30s
236
240
timeout: 3s
@@ -332,10 +336,8 @@ authorizers:
332
336
# Name used to describe the webhook
333
337
# This is explicitly used in monitoring machinery for metrics
334
338
# Note:
335
- # - If not specified, the default would be set to ""
336
- # - If there are multiple webhooks in the authorizer chain,
337
- # this field is required
338
339
# - Validation for this field is similar to how K8s labels are validated today.
340
+ # Required, with no default
339
341
name: super-important-kube-system-authorizer
340
342
# The duration to cache 'authorized' responses from the webhook
341
343
# authorizer.
@@ -454,10 +456,7 @@ Labels {along with possible values}:
454
456
- ` mode` {<authorizer_name>} # when authorizer is a webhook, prepend `webhook_`
455
457
- ` decision` {Allow, Deny}
456
458
457
- **Note:** Some examples of <authorizer_name>: `RBAC`, `Node`, `ABAC`, `webhook{,_<name>}`.
458
- If there is only one webhook and no name specified, there would be no `_<name>` suffix.
459
- If the webhook has a name specified, even if there is only one webhook, then the name
460
- would be in the metrics and exposed via the metrics endpoint.
459
+ **Note:** Some examples of <authorizer_name>: `RBAC`, `Node`, `ABAC`, `webhook_<name>`.
461
460
462
461
2. `apiserver_authorization_webhook_evaluations_total`
463
462
0 commit comments