6.8. Azure のユーザー定義タグのクエリー
OpenShift Container Platform クラスターを作成したら、Azure リソース用に定義されたタグのリストにアクセスできます。OpenShift Container Platform タグの形式は、kubernetes.io_cluster.<cluster_id>:owned
です。cluster_id
パラメーターは、config.openshift.io/Infrastructure
にある .status.infrastructureName
の値です。
次のコマンドを実行して、Azure リソース用に定義されたタグをクエリーします。
oc get infrastructures.config.openshift.io cluster -o=jsonpath-as-json='{.status.platformStatus.azure.resourceTags}'
$ oc get infrastructures.config.openshift.io cluster -o=jsonpath-as-json='{.status.platformStatus.azure.resourceTags}'
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 出力例
Copy to Clipboard Copied! Toggle word wrap Toggle overflow