@@ -380,7 +380,7 @@ command line arguments, and use the configuration file instead.
380
380
# CAUTION: this is an example configuration.
381
381
# Do not use this for your own cluster!
382
382
#
383
- apiVersion: apiserver.config.k8s.io/v1beta1
383
+ apiVersion: apiserver.config.k8s.io/v1
384
384
kind: AuthenticationConfiguration
385
385
# list of authenticators to authenticate Kubernetes users using JWT compliant tokens.
386
386
# the maximum number of allowed authenticators is 64.
513
513
{{< tabs name="example_configuration" >}}
514
514
{{% tab name="Valid token" %}}
515
515
` ` ` yaml
516
- apiVersion: apiserver.config.k8s.io/v1beta1
516
+ apiVersion: apiserver.config.k8s.io/v1
517
517
kind: AuthenticationConfiguration
518
518
jwt:
519
519
- issuer:
@@ -567,14 +567,14 @@ jwt:
567
567
"admin"
568
568
],
569
569
"extra": {
570
- "example.com/tenant": "72f988bf-86f1-41af-91ab-2d7cd011db4a"
570
+ "example.com/tenant": [ "72f988bf-86f1-41af-91ab-2d7cd011db4a"]
571
571
}
572
572
}
573
573
` ` `
574
574
{{% /tab %}}
575
575
{{% tab name="Fails claim validation" %}}
576
576
` ` ` yaml
577
- apiVersion: apiserver.config.k8s.io/v1beta1
577
+ apiVersion: apiserver.config.k8s.io/v1
578
578
kind: AuthenticationConfiguration
579
579
jwt:
580
580
- issuer:
625
625
{{% /tab %}}
626
626
{{% tab name="Fails user validation" %}}
627
627
` ` ` yaml
628
- apiVersion: apiserver.config.k8s.io/v1beta1
628
+ apiVersion: apiserver.config.k8s.io/v1
629
629
kind: AuthenticationConfiguration
630
630
jwt:
631
631
- issuer:
683
683
"admin"
684
684
],
685
685
"extra": {
686
- "example.com/tenant": "72f988bf-86f1-41af-91ab-2d7cd011db4a"
686
+ "example.com/tenant": [ "72f988bf-86f1-41af-91ab-2d7cd011db4a"]
687
687
}
688
688
}
689
689
` ` `
@@ -1108,7 +1108,7 @@ A sample authentication configuration file is below:
1108
1108
# CAUTION: this is an example configuration.
1109
1109
# Do not use this for your own cluster!
1110
1110
#
1111
- apiVersion: apiserver.config.k8s.io/v1beta1
1111
+ apiVersion: apiserver.config.k8s.io/v1
1112
1112
kind: AuthenticationConfiguration
1113
1113
anonymous:
1114
1114
enabled: true
0 commit comments