liqoctl generate
Generate Liqo resources
Description
Synopsis
Generate Liqo resources.
liqoctl generate configuration
Generate a Configuration
Synopsis
Generate the local network configuration to be applied to other clusters.
liqoctl generate configuration [flags]
Options
-o
, --output
string:
Output format of the resulting Configuration resource. Supported formats: json, yaml (default “yaml”)
Global options
--cluster
string:
The name of the kubeconfig cluster to use
--context
string:
The name of the kubeconfig context to use
--global-annotations
stringToString:
Global annotations to be added to all created resources (key=value)
--global-labels
stringToString:
Global labels to be added to all created resources (key=value)
--kubeconfig
string:
Path to the kubeconfig file to use for CLI requests
--liqo-namespace
string:
The namespace where Liqo is installed in (default “liqo”)
-n
, --namespace
string:
The namespace scope for this request
--skip-confirm
Skip the confirmation prompt (suggested for automation)
--user
string:
The name of the kubeconfig user to use
-v
, --verbose
Enable verbose logs (default false)
liqoctl generate identity
Generate a Identity
Synopsis
Generate the Identity resource to be applied on the remote consumer cluster.
The Identity is generated from the Tenant associated with the provided remote clusterID. It is intended to be applied on the remote consumer cluster. This command generates only Identities used by the Liqo control plane for authentication purposes (e.g., CRDReplicator).
liqoctl generate identity [flags]
Examples
$ liqoctl generate identity --remote-cluster-id remote-cluster-id
Options
-o
, --output
string:
Output format of the resulting Identity resource. Supported formats: json, yaml (default “yaml”)
--remote-cluster-id
clusterID:
The ID of the remote cluster
--remote-tenant-namespace
string:
The remote tenant namespace where the Identity will be applied, if not sure about the value, you can omit this flag it when the manifest is applied
Global options
--cluster
string:
The name of the kubeconfig cluster to use
--context
string:
The name of the kubeconfig context to use
--global-annotations
stringToString:
Global annotations to be added to all created resources (key=value)
--global-labels
stringToString:
Global labels to be added to all created resources (key=value)
--kubeconfig
string:
Path to the kubeconfig file to use for CLI requests
--liqo-namespace
string:
The namespace where Liqo is installed in (default “liqo”)
-n
, --namespace
string:
The namespace scope for this request
--skip-confirm
Skip the confirmation prompt (suggested for automation)
--user
string:
The name of the kubeconfig user to use
-v
, --verbose
Enable verbose logs (default false)
liqoctl generate peering-user
Generate a new user with the permissions to peer with this cluster
Synopsis
Generate a new user with the permissions to peer with this cluster.
This command generates a user with the minimum permissions to peer with this cluster, from the cluster with the given cluster ID, and returns a kubeconfig to be used to create or destroy the peering.
liqoctl generate peering-user [flags]
Examples
$ liqoctl generate peering-user --consumer-cluster-id=<cluster-id>
Options
--consumer-cluster-id
clusterID:
The cluster ID of the cluster from which peering will be performed
Global options
--cluster
string:
The name of the kubeconfig cluster to use
--context
string:
The name of the kubeconfig context to use
--global-annotations
stringToString:
Global annotations to be added to all created resources (key=value)
--global-labels
stringToString:
Global labels to be added to all created resources (key=value)
--kubeconfig
string:
Path to the kubeconfig file to use for CLI requests
--liqo-namespace
string:
The namespace where Liqo is installed in (default “liqo”)
-n
, --namespace
string:
The namespace scope for this request
--skip-confirm
Skip the confirmation prompt (suggested for automation)
--user
string:
The name of the kubeconfig user to use
-v
, --verbose
Enable verbose logs (default false)
liqoctl generate publickey
Generate a Public Key
Synopsis
Generate the PublicKey of a Gateway Server or Client to be applied to other clusters.
liqoctl generate publickey [flags]
Options
--gateway-name
string:
The name of the gateway (server or client) to pull the PublicKey from
--gateway-type
string:
The type of gateway resource. Allowed values: [server client]
-o
, --output
string:
Output format of the resulting PublicKey resource. Supported formats: json, yaml (default “yaml”)
Global options
--cluster
string:
The name of the kubeconfig cluster to use
--context
string:
The name of the kubeconfig context to use
--global-annotations
stringToString:
Global annotations to be added to all created resources (key=value)
--global-labels
stringToString:
Global labels to be added to all created resources (key=value)
--kubeconfig
string:
Path to the kubeconfig file to use for CLI requests
--liqo-namespace
string:
The namespace where Liqo is installed in (default “liqo”)
-n
, --namespace
string:
The namespace scope for this request
--skip-confirm
Skip the confirmation prompt (suggested for automation)
--user
string:
The name of the kubeconfig user to use
-v
, --verbose
Enable verbose logs (default false)
liqoctl generate tenant
Generate a Tenant
Synopsis
Generate the Tenant resource to be applied on the remote provider cluster.
This commands generates a Tenant filled with all the authentication parameters needed to authenticate with the remote cluster. It signs the nonce provided by the remote cluster and generates the CSR. The Nonce can be provided as a flag or it can be retrieved from the secret in the tenant namespace (if existing).
liqoctl generate tenant [flags]
Examples
$ liqoctl generate tenant --remote-cluster-id remote-cluster-id
Options
--nonce
string:
The nonce to sign for the authentication with the remote cluster
-o
, --output
string:
Output format of the resulting Tenant resource. Supported formats: json, yaml (default “yaml”)
--proxy-url
string:
The URL of the proxy to use for the communication with the remote cluster
--remote-cluster-id
clusterID:
The ID of the remote cluster
--remote-tenant-namespace
string:
The namespace on the remote cluster where the Tenant will be applied, if not sure about the value, you can omit this flag and define it when the manifest is applied
Global options
--cluster
string:
The name of the kubeconfig cluster to use
--context
string:
The name of the kubeconfig context to use
--global-annotations
stringToString:
Global annotations to be added to all created resources (key=value)
--global-labels
stringToString:
Global labels to be added to all created resources (key=value)
--kubeconfig
string:
Path to the kubeconfig file to use for CLI requests
--liqo-namespace
string:
The namespace where Liqo is installed in (default “liqo”)
-n
, --namespace
string:
The namespace scope for this request
--skip-confirm
Skip the confirmation prompt (suggested for automation)
--user
string:
The name of the kubeconfig user to use
-v
, --verbose
Enable verbose logs (default false)