K0s kubeconfig create

k0s kubeconfig create

Create a kubeconfig for a user

Synopsis

Create a kubeconfig with a signed certificate and public key for a given user (and optionally user groups) Note: A certificate once signed cannot be revoked for a particular user

  1. k0s kubeconfig create [username] [flags]

Examples

  1. Command to create a kubeconfig for a user:
  2. CLI argument:
  3. $ k0s kubeconfig create [username]
  4. optionally add groups:
  5. $ k0s kubeconfig create [username] --groups [groups]

Options

  1. --groups string Specify groups
  2. -h, --help help for create

Options inherited from parent commands

  1. -c, --config string config file (default: ./k0s.yaml)
  2. --data-dir string Data Directory for k0s (default: /var/lib/k0s). DO NOT CHANGE for an existing setup, things will break!
  3. -d, --debug Debug logging (default: false)
  4. -l, --logging stringToString Logging Levels for the different components (default [kube-controller-manager=1,kube-scheduler=1,kubelet=1,etcd=info,containerd=info,konnectivity-server=1,kube-apiserver=1])

SEE ALSO