lxc cluster link create¶
Create cluster links
Synopsis¶
Description: Create cluster links
Bidirectional (default): run without –token on cluster A to get a token, then run with –token on cluster B.
Unidirectional: run “lxc auth identity create cluster-link/
lxc cluster link create [<remote>:]<link> [key=value...] [flags]
Examples¶
lxc cluster link create backup-cluster --auth-group backups
Create a pending bidirectional cluster link called "backup-cluster".
lxc cluster link create main-cluster --token <token> --auth-group backups
Create an active bidirectional cluster link called "main-cluster" using a token from "backup-cluster".
lxc cluster link create image-host --token <token> --unidirectional
Create a unidirectional cluster link called "image-host" using a token issued by the remote cluster.
Options¶
-g, --auth-group Authentication groups to add the newly created cluster link identity to
-d, --description Cluster link description
-t, --token Trust token to use when creating cluster link
--unidirectional Create a unidirectional cluster link (requires --token)
Options inherited from parent commands¶
--debug Show all debug messages
--force-local Force using the local unix socket
-h, --help Print help
--project Override the source project
-q, --quiet Do not show progress information
--sub-commands Use with help or --help to view sub-commands
-v, --verbose Show all information messages
--version Print version number
SEE ALSO¶
lxc cluster link - Manage cluster links