get
Usage
rapd cluster
命令用來讀取Cluster資源。
rapd cluster get (Name...) [flags]
Flags
這些是 rapd cluster get
命令中可用的旗標:
Flag Name | Short Name | Default Value | Required | Description |
---|---|---|---|---|
--output | -o | No | 輸出資源完整spec成可讀的文件,如: yaml, jsonl格式。 | |
--label | -l | No | 讀取label匹配的資源 | |
--field | No | 讀取field匹配的資源 | ||
--all-namespaces | -A | No | 查詢所有環境的資源 | |
--ignore-not-found | No | 當資源不存在會忽略錯誤(return exit code 0) |
Examples
這些是一些 rapd cluster get
命令的使用範例:
- 讀取指定名稱的Cluster:
rapd cluster get gcp
- 輸出Cluster 完整Spec:
rapd cluster get gcp -o yaml
Output
成功執行命令後,會返回類似以下的輸出:
NAMESPACE NAME PHASE SECRETNAMErapd-system c1 Available c1-secretrapd-system c2 Available c2-secret