$ oc describe proxy/cluster
作为集群管理员,您可以验证集群范围的代理设置。
要验证集群范围代理是否已正确配置,请运行以下命令:
$ oc describe proxy/cluster
集群代理对象显示代理服务器和证书信息。
作为集群管理员,您可以验证环境变量,以确保为 Red Hat OpenShift 的构建(在 OpenShift Container Platform 集群上)正确配置了代理设置。
要验证环境变量,请运行以下命令:
$ oc set env deployment/openshift-builds-operator --list -n openshift-builds | grep PROXY
以下示例输出列出了HTTP_PROXY
、HTTPS_PROXY
和 NO_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