Updated on 2025-04-03 GMT+08:00

ccictl config set-cluster

Scenario

Set a cluster entry in cliconfig.

Specifying a name that already exists will merge new fields on top of existing values for those fields.

ccictl config set-cluster NAME [--server=server] [--certificate-authority=path/to/certificate/authority] [--insecure-skip-tls-verify=true] [--tls-server-name=example.com]

Examples

# Set only the server field of the e2e cluster entry, without affecting other values.
ccictl config set-cluster e2e --server=https://1.2.3.4

# Add the certificate data to the e2e cluster entry.
ccictl config set-cluster e2e --embed-certs --certificate-authority=~/.kubev2/e2e/ca.crt

# Disable the certificate check in the e2e cluster entry.
ccictl config set-cluster e2e --insecure-skip-tls-verify=true

# Set the custom TLS server name for verifying the e2e cluster entry.
ccictl config set-cluster e2e --tls-server-name=my-cluster-name

# Set the proxy URL of the e2e cluster entry.
ccictl config set-cluster e2e --proxy-url=https://1.2.3.4

Options

--certificate-authority string

Path to the CA file for the cluster entry in cliconfig

--embed-certs tristate[=true]

Embed the certificate of the cluster entry in cliconfig.

-h, --help

Help information for set-cluster

--insecure-skip-tls-verify tristate[=true]

Set the insecure-skip-tls-verify field in the cluster entry in cliconfig.

--proxy-url string

Proxy URL of the cluster entry in cliconfig

--server string

The server field of the cluster entry in cliconfig

--tls-server-name string

The tls-server-name field of the cluster entry in cliconfig

The following ccictl options can also be used in subcommands:

Parent command options