cluster-info
Display Kubernetes server version and API versions discovered from the selected cluster.
Synopsis
Section titled “Synopsis”nyl cluster-info [OPTIONS]Description
Section titled “Description”The cluster-info command is useful when preparing nyl render --offline inputs. It connects to Kubernetes using the selected Nyl profile and prints the Kubernetes version plus API versions that Helm should see during offline rendering.
Options
Section titled “Options”-p, --profile <PROFILE>- Profile to use for connecting to the cluster.--output <FORMAT>- Output format:text,json,yaml, orcsv(default:text).
Examples
Section titled “Examples”Human-readable output:
nyl cluster-info -p prodCSV output for copying into [project.kubernetes] or [profile.<name>.kubernetes]:
nyl cluster-info -p prod --output csvThe first CSV line is the Kubernetes version. The second line is a comma-separated list of API versions.