-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4092 from fabriziopandini/document-clusterctl-des…
…cribe 📖 Document clusterctl describe
- Loading branch information
Showing
8 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# clusterctl describe cluster | ||
|
||
The `clusterctl describe cluster` command provides an "at glance" view of a Cluster API cluster designed | ||
to help the user in quickly understanding if there are problems and where. | ||
|
||
For example `clusterctl describe cluster capi-quickstart` will provide an output similar to: | ||
|
||
![](../../images/describe-cluster.png) | ||
|
||
The "at glance" view is based on the idea that clusterctl should avoid to overload the user with information, | ||
but instead surface problems, if any. | ||
|
||
In practice, if you look at the `ControlPlane` node, you might notice that the underlying machines | ||
are grouped together, because all of them have the same state (Ready equal to True), so it is not | ||
necessary to repeat the same information three times. | ||
|
||
If this is not the case, and machines have different states, the visualization is going to use different lines: | ||
|
||
![](../../images/describe-cluster-how-grouping-works.png) | ||
|
||
You might also notice that the visualization does not represent the infrastructure machine or the | ||
bootstrap object linked to a machine, unless their state differs from the machine's state. | ||
|
||
## Customizing the visualization | ||
|
||
By default the visualization generated by `clusterctl describe cluster` hides details for the sake | ||
of simplicity and shortness. However, if required, the user can ask for showing all the detail: | ||
|
||
By using the `--disable-grouping` flag, the user can force the visualization to show all the machines | ||
on separated lines, no matter if they have the same state or not: | ||
|
||
![](../../images/describe-cluster-disable-grouping.png) | ||
|
||
By using the `--disable-no-echo` flag, the user can force the visualization to show infrastructure machines and | ||
bootstrap objects linked to machines, no matter if they have the same state or not: | ||
|
||
![](../../images/describe-cluster-disable-no-echo.png) | ||
|
||
It is also possible to force the visualization to show all the conditions for an object (instead of showing | ||
only the ready condition). e.g. with `--show-conditions KubeadmControlPlane` you get: | ||
|
||
![](../../images/describe-cluster-show-conditions.png) | ||
|
||
Please note that this option is flexible, and you can pass a comma separated list of `kind` or `kind/name` for | ||
which the command should show all the object's conditions (use 'all' to show conditions for everything). |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.