Skip to content

“Authenticating“ reference page unclear on use of TokenRequest subresource #36254

Open
@jasonjayr

Description

@jasonjayr

Regarding the page @ https://kubernetes.io/docs/reference/access-authn-authz/authentication/#service-account-tokens

I got stuck trying to get a token for service account becuase the version of kubernetes I was using was too new. In the example given:

apiVersion: v1
kind: ServiceAccount
metadata:
  # ...
secrets:
- name: jenkins-token-1yvwg

the secrets section was not present in any of my service accounts. According to https://kubernetes.io/docs/concepts/configuration/secret/#service-account-token-secrets the secret needs to be created manually, or the TokenRequest API needs to be used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    language/enIssues or PRs related to English languagelifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.priority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.sig/authCategorizes an issue or PR as relevant to SIG Auth.

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions