How to create a Kubernetes ServiceAccount with token?

267 views
Skip to first unread message

jasmin

unread,
Apr 7, 2017, 4:34:44 AM4/7/17
to Kubernetes user discussion and Q&A



I create a new secret manually and when describe my secret there is no token for my service account
when i want to connect i get this error 

Jordan Liggitt

unread,
Apr 8, 2017, 9:05:50 AM4/8/17
to Kubernetes user discussion and Q&A
The controller manager creates service accounts, and creates tokens for them if given a `--service-account-private-key-file`

The API server must be given the corresponding public key to verify the tokens using `--service-account-key-file`

Those tokens are automatically mounted into pods if you enable the ServiceAccount admission plugin.

yasmine.cheikhrouhou

unread,
Apr 8, 2017, 1:32:21 PM4/8/17
to kubernet...@googlegroups.com
Thank you sir and this private key from where i get it or it's specific for the account



Envoyé depuis mon smartphone Samsung Galaxy.

-------- Message d'origine --------
De : Jordan Liggitt <jlig...@redhat.com>
Date : 08/04/2017 14:05 (GMT+01:00)
À : Kubernetes user discussion and Q&A <kubernet...@googlegroups.com>
Objet : [kubernetes-users] How to create a Kubernetes ServiceAccount with token?

The controller manager creates service accounts, and creates tokens for them if given a `--service-account-private-key-file` 

The API server must be given the corresponding public key to verify the tokens using `--service-account-key-file`

Those tokens are automatically mounted into pods if you enable the ServiceAccount admission plugin.

--
You received this message because you are subscribed to a topic in the Google Groups "Kubernetes user discussion and Q&A" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kubernetes-users/R4rUz-itgdE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kubernetes-use...@googlegroups.com.
To post to this group, send email to kubernet...@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages