The official documentation of kubernetes (https://kubernetes.io/docs/reference/access-authn-authz/authentication/) states at some point: "3. Call Kubectl with --token being the id_token OR add tokens to .kube/config" (just search for mentioned phrase in the provided doc url to get the context).
Can anyone give me example where can I "add tokens to .kube/config" directly?
I am in a scenario, when it is needed for me, I can access my cluster with --token inline option but I need to go with adding it to .kube/config.
I am trying to do sth like this but doesn't work (still need to add --token inline option, doesn't work without it):
users:
- user:
token: >-
ey...........