Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auth Token #398

Open
riaanp78 opened this issue Mar 2, 2023 · 7 comments
Open

Auth Token #398

riaanp78 opened this issue Mar 2, 2023 · 7 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@riaanp78
Copy link

riaanp78 commented Mar 2, 2023

Not sure if I am doing it wrong, but there is no auth token generated with:

Create the service account in the current namespace (we assume default)

kubectl create serviceaccount skooner-sa

Give that service account root on the cluster

kubectl create clusterrolebinding skooner-sa --clusterrole=cluster-admin --serviceaccount=default:skooner-sa

Find the secret that was created to hold the token for the SA

kubectl get secrets

Show the contents of the secret to extract the token

kubectl describe secret skooner-sa-token-xxxxx

@Jeansen
Copy link

Jeansen commented Mar 5, 2023

I bet you run Kubernetes 1.22 or greater. Since then, the token secret is no longer created automatically.

https://kubernetes.io/docs/reference/access-authn-authz/service-accounts-admin/#manual-secret-management-for-serviceaccounts

https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#manually-create-an-api-token-for-a-serviceaccount

The main docu needs to be updated.

kubectl create token skooner-sa will give you a quick start.

@tianni4104 tianni4104 reopened this Mar 15, 2023
@tianni4104 tianni4104 added the good first issue Good for newcomers label Mar 15, 2023
@tianni4104
Copy link
Collaborator

@Jeansen Thanks for sharing the solution. We will update the readme

@Harrish-Selvarajah
Copy link

Hi @tianni4104, I can help out with this issue. I'm a beginner to Kubernetes but really interested to work on this.

@tianni4104
Copy link
Collaborator

@Harrish-Selvarajah That's awesome! I can assign this to you

@Harrish-Selvarajah
Copy link

Thank you @tianni4104, is there a community channel I can discuss about this issue, get help and get started on it ?

@tianni4104
Copy link
Collaborator

@Harrish-Selvarajah We don't have a channel for now. If you have any questions, feel free to comment here

@adityarawat1223
Copy link

can i work on this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

6 participants