跳到內容

get

Usage

rapd cluster 命令用來讀取Cluster資源。

Terminal window
rapd cluster get (Name...) [flags]

Flags

這些是 rapd cluster get 命令中可用的旗標:

Flag NameShort NameDefault ValueRequiredDescription
--output-oNo輸出資源完整spec成可讀的文件,如: yaml, jsonl格式。
--label-lNo讀取label匹配的資源
--fieldNo讀取field匹配的資源
--all-namespaces-ANo查詢所有環境的資源
--ignore-not-foundNo當資源不存在會忽略錯誤(return exit code 0)

Examples

這些是一些 rapd cluster get 命令的使用範例:

  1. 讀取指定名稱的Cluster:
Terminal window
rapd cluster get gcp
  1. 輸出Cluster 完整Spec:
Terminal window
rapd cluster get gcp -o yaml

Output

成功執行命令後,會返回類似以下的輸出:

Terminal window
NAMESPACE NAME PHASE SECRETNAME
rapd-system c1 Available c1-secret
rapd-system c2 Available c2-secret