3.7.3. ラベルおよびアノテーションの OpenShift ルートへの追加
組織で必要な場合は、OpenShift Route のラベルとアノテーションを設定できます。
前提条件
-
宛先 OpenShift クラスターへの管理権限を持つアクティブな
oc
セッション。Getting started with the CLI を参照してください。 - OpenShift で実行される OpenShift Dev Spaces のインスタンス。
手順
CheCluster
カスタムリソースを設定します。「CLI を使用して CheCluster カスタムリソースの設定」 を参照してください。Copy to Clipboard Copied! Toggle word wrap Toggle overflow spec: server: cheServerIngress: labels: <labels> annotations: <annotations> customCheProperties: CHE_INFRA_KUBERNETES_INGRESS_LABELS: <labels> CHE_INFRA_KUBERNETES_INGRESS_ANNOTATIONS__JSON: "<annotations>"
spec: server: cheServerIngress: labels: <labels>
1 annotations: <annotations>
2 customCheProperties: CHE_INFRA_KUBERNETES_INGRESS_LABELS: <labels>
3 CHE_INFRA_KUBERNETES_INGRESS_ANNOTATIONS__JSON: "<annotations>"
4