Skip to content

Commit e17eed9

Browse files
authored
Merge pull request #47283 from liggitt/4193-beta
KEP-4193: beta promotion of ServiceAccountTokenNodeBinding feature gate
2 parents 3c7cbd9 + 1daf72a commit e17eed9

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

content/en/docs/reference/command-line-tools-reference/feature-gates/service-account-token-node-binding.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,9 @@ stages:
99
- stage: alpha
1010
defaultValue: false
1111
fromVersion: "1.29"
12+
toVersion: "1.30"
13+
- stage: beta
14+
defaultValue: true
15+
fromVersion: "1.31"
1216
---
13-
Controls whether the apiserver allows binding service account tokens to Node objects.
17+
Controls whether the API server allows binding service account tokens to Node objects.

content/en/docs/tasks/configure-pod-container/configure-service-account.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,13 @@ ServiceAccount. You can request a specific token duration using the `--duration`
184184
command line argument to `kubectl create token` (the actual duration of the issued
185185
token might be shorter, or could even be longer).
186186

187+
{{< feature-state feature_gate_name="ServiceAccountTokenNodeBinding" >}}
188+
187189
When the `ServiceAccountTokenNodeBinding` and `ServiceAccountTokenNodeBindingValidation`
188-
features are enabled and the `KUBECTL_NODE_BOUND_TOKENS` environment variable is set to `true`,
189-
it is possible to create a service account token that is directly bound to a `Node`:
190+
features are enabled, it is possible to create a service account token that is directly bound to a `Node`:
190191

191192
```shell
192-
KUBECTL_NODE_BOUND_TOKENS=true kubectl create token build-robot --bound-object-kind Node --bound-object-name node-001 --bound-object-uid 123...456
193+
kubectl create token build-robot --bound-object-kind Node --bound-object-name node-001 --bound-object-uid 123...456
193194
```
194195

195196
The token will be valid until it expires or either the associated `Node` or service account are deleted.

0 commit comments

Comments
 (0)