跳到內容

get

Usage

rapd clusterclass 命令用來讀取clusterclass資源。

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

Flags

這些是 rapd clusterclass 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 clusterclass get 命令的使用範例:

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

Output

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

Terminal window
NAMESPACE NAME
rapd-system gcp
rapd-system aws