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
--data-dir string Data Directory for k0s. DO NOT CHANGE for an existing setup, things will break! (default "/var/lib/k0s")
-d, --debug Debug logging (default: false)
--debugListenOn string Http listenOn for Debug pprof handler (default ":6060")
-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")
--status-socket string Full file path to the socket file. (default: <rundir>/status.sock)
--url string url of the api server to join
--valid duration how long token is valid, in Go duration format
-v, --verbose Verbose logging (default: false)
SEE ALSO#
- k0s token - Manage join tokens