We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 377de9d commit c7e6d90Copy full SHA for c7e6d90
hpecp/cli/k8sworker.py
@@ -183,6 +183,10 @@ def examples(self):
183
$ hpecp k8sworker list --query "[*] | @[?contains('10.0.1.10 10.0.1.210', ipaddr)] | [*][_links.self.href]" --output text
184
/api/v2/worker/k8shost/5
185
/api/v2/worker/k8shost/7
186
+
187
+ # Retrieve the first master node of a K8S Cluster
188
+ $ hpecp k8scluster list --query "[?_links.self.href == '/api/v2/k8scluster/1'] | [0] | [k8shosts_config] | [0] | [?role == 'master'] | [0] | [node]" -o text
189
+ /api/v2/worker/k8shost/7
190
""" # noqa: E501
191
)
192
0 commit comments