@@ -380,7 +380,7 @@ command line arguments, and use the configuration file instead.
380380# CAUTION: this is an example configuration.
381381# Do not use this for your own cluster!
382382#
383- apiVersion: apiserver.config.k8s.io/v1beta1
383+ apiVersion: apiserver.config.k8s.io/v1
384384kind: AuthenticationConfiguration
385385# list of authenticators to authenticate Kubernetes users using JWT compliant tokens.
386386# the maximum number of allowed authenticators is 64.
513513 {{< tabs name="example_configuration" >}}
514514 {{% tab name="Valid token" %}}
515515 ` ` ` yaml
516- apiVersion: apiserver.config.k8s.io/v1beta1
516+ apiVersion: apiserver.config.k8s.io/v1
517517 kind: AuthenticationConfiguration
518518 jwt:
519519 - issuer:
@@ -567,14 +567,14 @@ jwt:
567567 "admin"
568568 ],
569569 "extra": {
570- "example.com/tenant": "72f988bf-86f1-41af-91ab-2d7cd011db4a"
570+ "example.com/tenant": [ "72f988bf-86f1-41af-91ab-2d7cd011db4a"]
571571 }
572572 }
573573 ` ` `
574574 {{% /tab %}}
575575 {{% tab name="Fails claim validation" %}}
576576 ` ` ` yaml
577- apiVersion: apiserver.config.k8s.io/v1beta1
577+ apiVersion: apiserver.config.k8s.io/v1
578578 kind: AuthenticationConfiguration
579579 jwt:
580580 - issuer:
625625 {{% /tab %}}
626626 {{% tab name="Fails user validation" %}}
627627 ` ` ` yaml
628- apiVersion: apiserver.config.k8s.io/v1beta1
628+ apiVersion: apiserver.config.k8s.io/v1
629629 kind: AuthenticationConfiguration
630630 jwt:
631631 - issuer:
683683 "admin"
684684 ],
685685 "extra": {
686- "example.com/tenant": "72f988bf-86f1-41af-91ab-2d7cd011db4a"
686+ "example.com/tenant": [ "72f988bf-86f1-41af-91ab-2d7cd011db4a"]
687687 }
688688 }
689689 ` ` `
@@ -1108,7 +1108,7 @@ A sample authentication configuration file is below:
11081108# CAUTION: this is an example configuration.
11091109# Do not use this for your own cluster!
11101110#
1111- apiVersion: apiserver.config.k8s.io/v1beta1
1111+ apiVersion: apiserver.config.k8s.io/v1
11121112kind: AuthenticationConfiguration
11131113anonymous:
11141114 enabled: true
0 commit comments