Listing Your Clusters
You can list the clusters you have created. This action also returns information about their status and time of creation.
Listing your Clusters Using Cockpit
-
In the Projects dashboard, click the name of the project whose clusters you want to list.
The project details panel appears. -
Click the Clusters tab.
The list of your clusters appears.
Listing Your Clusters Using OKS CLI
The cluster list command lists all available clusters and allows you to check their status. You can use it with the following syntax:
$ oks-cli cluster list \
--project-name NAME_OF_PROJECT \
--output json
This command contains the following options that you may need to specify:
-
project-name: The name of the project containing the clusters that you want to list. -
(optional)
cluster-name: The name of the cluster. -
(optional)
deleted: The ability to list deleted clusters. -
(optional)
output: The output format for the response (json|yaml|wide).
+-------------+-------------+--------------+------------+---------+
| NAME | CREATED | UPDATED | STATUS | DEFAULT |
+-------------+-------------+--------------+------------+---------+
| my-cluster | a day ago | a day ago | ready | |
+-------------+-------------+--------------+------------+---------+
|
Using the Result sample
|
Related Pages
Corresponding API Methods