Bootstrapping Commands Reference¶
The k10multicluster
tool is used to setup the primary cluster and to
bootstrap secondary clusters for the K10 Multi-Cluster Manager.
The tool can be downloaded for various platforms from the K10 Tools Releases page.
Important
The version of the k10multicluster
tool must match the version of K10
that it is being run against.
Usage¶
Usage:
k10multicluster [command]
Available Commands:
bootstrap Run the bootstrap command
help Help about any command
remove Run the remove command
setup-primary Run the setupPrimary command
Flags:
-h, --help help for k10multicluster
Setup-Primary¶
The setup-primary
command sets up the primary cluster
to be the global multi-cluster dashboard.
The following setup-primary command parameters will be required for the setup process:
Parameter |
Required |
Description |
Default |
---|---|---|---|
|
no |
name of the kubeconfig context to use for the primary cluster |
(default: current context in kubeconfig) |
|
no |
path to kubeconfig file to use for the primary cluster |
(default: KUBECONFIG environment variable or ~/.kube/config) |
|
yes |
name for the primary cluster |
none |
|
no |
k10 namespace for the primary cluster |
|
|
no |
k10 release name for the primary cluster |
|
|
no |
comma separated labels for the primary cluster, example foo=bar,foo1=bar1 |
none |
The --replace
flag can be used to re-bootstrap an exiting cluster
in case of any changes. It replaces the config, if it already exists,
with the latest configuration.
Bootstrap¶
The bootstrap
command adds a secondary cluster to the primary global
manager.
The bootstrapping process saves any TLS configuration provided by the local Kube config file to ensure a secure connection can be established.
The following bootstrap command parameters will be required for the bootstrapping process:
Parameter |
Required |
Description |
Default |
---|---|---|---|
|
no |
name of the kubeconfig context to use for the primary cluster |
(default: current context in kubeconfig) |
|
no |
path to kubeconfig file to use for the primary cluster |
(default: KUBECONFIG environment variable or ~/.kube/config) |
|
yes |
name for the primary cluster |
none |
|
no |
k10 namespace for the primary cluster |
|
|
no |
k10 release name for the primary cluster |
|
|
no |
name of the kubeconfig context to use for the secondary cluster |
(default: current context in kubeconfig) |
|
no |
path to kubeconfig file to use for the secondary cluster |
(default: KUBECONFIG environment variable or ~/.kube/config) |
|
yes |
name for the secondary cluster |
none |
|
no |
k10 namespace for the secondary cluster |
|
|
no |
k10 release name for the secondary cluster |
|
|
yes |
external ingress for the secondary cluster; should be a full URL, including path: |
none |
|
no |
don't verify the ingress TLS certificate (INSECURE; ONLY FOR TESTING) |
|
|
no |
comma separated labels for the secondary cluster, example foo=bar,foo1=bar1 |
none |
Note
The primary and secondary contexts must be different. This means that
if primary-kubeconfig
and secondary-kubeconfig
are same, then at least
one of primary-context
and secondary-context
is required.
The --replace
flag can be used to re-bootstrap an exiting cluster
in case of any changes.
The --setup-primary
flag can be used to setup primary cluster along with
bootstrapping the secondary cluster.
Remove¶
The remove
command removes a secondary cluster from the
primary global manager.
The following command parameters will be required for the removal process:
Parameter |
Required |
Description |
Default |
---|---|---|---|
|
no |
name of the kubeconfig context to use for the primary cluster |
(default: current context in kubeconfig) |
|
no |
path to kubeconfig file to use for the primary cluster |
(default: KUBECONFIG environment variable or ~/.kube/config) |
|
yes |
name for the primary cluster |
none |
|
no |
k10 namespace for the primary cluster |
|
|
no |
k10 release name for the primary cluster |
|
|
no |
name of the kubeconfig context to use for the secondary cluster |
(default: current context in kubeconfig) |
|
no |
path to kubeconfig file to use for the secondary cluster |
(default: KUBECONFIG environment variable or ~/.kube/config) |
|
yes |
name for the secondary cluster |
none |
|
no |
k10 namespace for the secondary cluster |
|
Note
The primary and secondary contexts must be different. This means that
if primary-kubeconfig
and secondary-kubeconfig
are same, then at least
one of primary-context
and secondary-context
is required.