2.3. プロキシーの詳細を確認しています
プロキシーの背後でクラスターを実行する場合は、OpenShift Container Platform クラスターでクラスター全体のプロキシー設定と環境変数が正しく設定されていることを確認してください。これにより、すべてのビルドトラフィックが監視対象のアウトバウンドプロキシーゲートウェイを経由してルーティングされることが保証されます。
前提条件
-
ocCLI がインストールされている。
手順
クラスター全体のプロキシー設定を確認するには、次のコマンドを実行します。
$ oc describe proxy/cluster出力例:
Name: cluster Namespace: Labels: hypershift.openshift.io/managed=true Annotations: hypershift.io/hosted-cluster-proxy-config: true include.release.openshift.io/ibm-cloud-managed: true include.release.openshift.io/self-managed-high-availability: true release.openshift.io/create-only: true API Version: config.openshift.io/v1 Kind: Proxy Metadata: Creation Timestamp: 2026-01-05T09:56:06Z Generation: 2 Owner References: API Version: config.openshift.io/v1 Kind: ClusterVersion Name: version UID: bfb9588f-106f-4e9f-965b-03daa0cd8c33 Resource Version: 1451 UID: 8bbf0aef-6d78-479d-abdf-ddbb34bf3ff1 Spec: Trusted CA: Name: Events: <none>環境変数を確認するには、次のコマンドを実行します。
$ oc set env deployment/openshift-builds-operator --list -n openshift-builds | grep PROXY出力例:
HTTP_PROXY=http://192.168.130.1:3128 HTTPS_PROXY=https://192.168.130.1:3129 NO_PROXY=.cluster.local,.svc,.testing,10.217.0.0/22,10.217.4.0/23,127.0.0.1,192.168.126.0/24,192.168.1 30.11,api-int.crc.testing,localhost