click-to-deploy icon indicating copy to clipboard operation
click-to-deploy copied to clipboard

Fix method of obtaining service account token

Open liggitt opened this issue 2 years ago • 1 comments

The .secrets field within service accounts is only for listing secrets to be mounted into pods, not for extracting secrets for other uses. There is no guarantee the first item in the list will be a token secret.

In 1.24+, this field is not populated by default.

Adapt instructions from https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#manually-create-a-service-account-api-token to obtain a token

cc @zshihang

liggitt avatar May 20 '22 02:05 liggitt

/lgtm

zshihang avatar May 20 '22 16:05 zshihang