Back to Talos

KubeAuthorizerConfig

website/content/v1.14/reference/configuration/kubernetes/kubeauthorizerconfig.md

1.14.02.4 KB
Original Source
<!-- markdownlint-disable -->

{{< 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 is the configuration for the webhook 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 is the configuration for the webhook authorizer.

webhook: connectionInfo: type: InClusterConfig failurePolicy: NoOpinion matchConditionSubjectAccessReviewVersion: v1 subjectAccessReviewVersion: v1 timeout: 3s {{< /highlight >}}

FieldTypeDescriptionValue(s)
namestringName of the authorizer, should be be DNS1123 labels like myauthorizername or subdomains like myauthorizer.example.domain.
typestringType is the name of the authorizer.Node
RBAC
Webhook
webhookUnstructuredWebhook 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. | |