Migrate TokenReview from authentication.k8s.io/v1beta1
TokenReview asks the API server to authenticate a bearer token. It is a request, not an object stored in the cluster, so it lives in code rather than manifests. Kubernetes 1.22 removed authentication.k8s.io/v1beta1, and v1 has been available since 1.6.
What replaces it
- Replacement
authentication.k8s.io/v1- Available since
- 1.6
- Deprecated in
- 1.19
- Removed in
- 1.22
Check a manifest against 1.22, or read the official documentation.
Before and after
Before:
apiVersion: authentication.k8s.io/v1beta1
kind: TokenReview
metadata:
name: example
spec:
token: <bearer token>
# The rest of the object stays the same. After:
apiVersion: authentication.k8s.io/v1
kind: TokenReview
metadata:
name: example
spec:
token: <bearer token>
# The rest of the object stays the same.