K0s token pre shared
k0s token pre-shared#
Generates token and secret and stores them as a files
k0s token pre-shared [flags]
Examples#
k0s token pre-shared --role worker --cert <path>/<to>/ca.crt --url https://<controller-ip>:<port>/
Options#
--cert string path to the CA certificate file
-h, --help help for pre-shared
--out string path to the output directory. Default: current dir (default ".")
--role string token role. valid values: worker, controller. Default: worker (default "worker")
--url string url of the api server to join
--valid duration how long token is valid, in Go duration format
SEE ALSO#
- k0s token - Manage join tokens