ocne cluster show

Lists the location of a kubeconfig file, the full cluster configuration information, or a specific cluster configuration field, of a Kubernetes cluster.

ocne cluster show 
[{-a|--all}]
[{-C|--cluster-name} name]
[{-f|--field} path]

Where:

{-a|--all}

Shows the full cluster configuration.

{-C|--cluster-name} name

The name of the cluster. The default is ocne.

{-f|--field} path

The path to a configuration field in the cluster configuration. For example:

--field config.providerconfig.oci

Example 4-55 Show the kubeconfig file location for the default cluster

To show the location of the kubeconfig file for the default cluster:

ocne cluster show 

Example 4-56 Show the kubeconfig file location for a cluster

To show the location of the kubeconfig file for a cluster:

ocne cluster show --cluster-name mycluster

Example 4-57 Show the full configuration for a cluster

To show the full configuration for a cluster:

ocne cluster show --cluster-name mycluster --all

Example 4-58 Show a configuration field for a cluster

To show a specific configuration field for a cluster:

ocne cluster show --cluster-name mycluster --field config.providerconfig.libvirt