Aji Tirto Prayogo
Aji Tirto Prayogo

Reputation: 21

Get token from service-account using kubectl describe

I just learned a month using kubernetes but i have problem after i apply file serviceaccount and get from serviceaccount, i don't have token from describe serviceaccount. How to i get token from serviceaccount ?

picture file

picture apply

describe serviceaccount name

picture describe

Upvotes: 0

Views: 1919

Answers (1)

Adiii
Adiii

Reputation: 59896

you need to request a service account token, as after this release the default token is no longer available.

kubectl create token SERVICE_ACCOUNT_NAME

Secret API objects containing service account tokens are no longer auto-generated for every ServiceAccount.

create-token

Upvotes: 4

Related Questions