alpacon server token create

Generate a new server registration token. Alpamon uses registration tokens to self-register servers without manual intervention.

alpacon server token create [flags]

Options

  -n, --name string           A name to identify the token
  -g, --groups strings        Group names or UUIDs to assign on registration (comma-separated)
      --expires-in-days int   Number of days until the token expires (0 = no expiry)
  -h, --help                  help for create
The token key is displayed once at creation time and cannot be retrieved again. Save it immediately.
Scope --groups to the smallest set the install batch needs and set --expires-in-days so the token doesn’t outlive its purpose. Predictable, narrowly-scoped tokens make denials easier to debug and reduce blast radius if a token leaks.

Examples

Interactive mode:

alpacon server token create

Create with name and group assignment:

alpacon server token create --name k8s-nodes --groups infra

Create with expiry:

alpacon server token create --name k8s-nodes --groups infra --expires-in-days 365
Last updated: