30.8. 为代理配置默认模板
默认情况下,OpenShift Container Platform 中提供的示例 模板 不包括 HTTP 代理的设置。对于基于这些模板的现有应用程序,修改应用程序构建配置 的源 部分并添加代理设置:
...
source:
type: Git
git:
uri: https://github.com/openshift/ruby-hello-world
httpProxy: http://proxy.example.com
httpsProxy: https://proxy.example.com
noProxy: somedomain.com, otherdomain.com
...
这类似于使用代理进行 Git 克隆的过程。