website/content/v1.14/reference/configuration/kubernetes/kubeauthorizerconfig.md
{{< highlight yaml >}} apiVersion: v1alpha1 kind: KubeAuthorizerConfig name: node # Name of the authorizer, should be be DNS1123 labels like myauthorizername or subdomains like myauthorizer.example.domain. type: Node # Type is the name of the authorizer. {{< /highlight >}}
{{< highlight yaml >}} apiVersion: v1alpha1 kind: KubeAuthorizerConfig name: rbac # Name of the authorizer, should be be DNS1123 labels like myauthorizername or subdomains like myauthorizer.example.domain. type: RBAC # Type is the name of the authorizer. {{< /highlight >}}
{{< highlight yaml >}} apiVersion: v1alpha1 kind: KubeAuthorizerConfig name: webhook # Name of the authorizer, should be be DNS1123 labels like myauthorizername or subdomains like myauthorizer.example.domain. type: Webhook # Type is the name of the authorizer.
webhook: connectionInfo: type: InClusterConfig failurePolicy: Deny matchConditionSubjectAccessReviewVersion: v1 matchConditions: - expression: has(request.resourceAttributes) - expression: '!(''system:serviceaccounts:kube-system'' in request.groups)' subjectAccessReviewVersion: v1 timeout: 3s {{< /highlight >}}
{{< highlight yaml >}} apiVersion: v1alpha1 kind: KubeAuthorizerConfig name: in-cluster-authorizer # Name of the authorizer, should be be DNS1123 labels like myauthorizername or subdomains like myauthorizer.example.domain. type: Webhook # Type is the name of the authorizer.
webhook: connectionInfo: type: InClusterConfig failurePolicy: NoOpinion matchConditionSubjectAccessReviewVersion: v1 subjectAccessReviewVersion: v1 timeout: 3s {{< /highlight >}}
| Field | Type | Description | Value(s) |
|---|---|---|---|
name | string | Name of the authorizer, should be be DNS1123 labels like myauthorizername or subdomains like myauthorizer.example.domain. | |
type | string | Type is the name of the authorizer. | Node |
RBAC | |||
Webhook | |||
webhook | Unstructured | Webhook is the configuration for the webhook authorizer. |
This field is required if the AuthorizerType is Webhook, should not be set for other authorizer types. The value is the literal Kubernetes webhook authorizer configuration. | |