Skip to content

Commit 9af1c83

Browse files
authored
Added the note for --service-account-issuer flag. (#31237)
* Added the note for --service-account-issuer flag. * Modify the Note. * Added Content for each Flag. * Improvement: Modify the content.
1 parent c468037 commit 9af1c83

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,10 +290,18 @@ To enable and use token request projection, you must specify each of the followi
290290
command line arguments to `kube-apiserver`:
291291

292292
* `--service-account-issuer`
293+
294+
It can be used as the Identifier of the service account token issuer. You can specify the `--service-account-issuer` argument multiple times, this can be useful to enable a non-disruptive change of the issuer. When this flag is specified multiple times, the first is used to generate tokens and all are used to determine which issuers are accepted. You must be running running Kubernetes v1.22 or later to be able to specify `--service-account-issuer` multiple times.
293295
* `--service-account-key-file`
296+
297+
File containing PEM-encoded x509 RSA or ECDSA private or public keys, used to verify ServiceAccount tokens. The specified file can contain multiple keys, and the flag can be specified multiple times with different files. If specified multiple times, tokens signed by any of the specified keys are considered valid by the Kubernetes API server.
294298
* `--service-account-signing-key-file`
299+
300+
Path to the file that contains the current private key of the service account token issuer. The issuer signs issued ID tokens with this private key.
295301
* `--api-audiences` (can be omitted)
296302

303+
The service account token authenticator validates that tokens used against the API are bound to at least one of these audiences. If `api-audiences` is specified multiple times, tokens for any of the specified audiences are considered valid by the Kubernetes API server. If the `--service-account-issuer` flag is configured and this flag is not, this field defaults to a single element list containing the issuer URL.
304+
297305
{{< /note >}}
298306

299307
The kubelet can also project a service account token into a Pod. You can

0 commit comments

Comments
 (0)