Skip to content

Commit 5c32f94

Browse files
committed
Update proxy configuration instructions
1 parent 182fdea commit 5c32f94

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

README.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,17 @@ $ oc create secret generic azdevops \
8282
--from-literal=AZP_POOL=NameOfYourPool
8383
```
8484

85-
Optionally, for a [proxy configuration], also create a Secret named azproxy, replacing environment variables with your own. For example:
85+
Optionally, for a [proxy configuration], also create a Secret named azproxy, replacing environment variables with your own. The `NO_PROXY` proxy bypass configuration can be extracted from the [cluster-wide proxy]. For example:
8686

8787
```
88+
$ oc get proxy -o jsonpath='{.items[0].status.noProxy}'
8889
$ oc create secret generic azproxy \
8990
--from-literal=AZP_PROXY_URL=http://192.168.0.1:8888 \
9091
--from-literal=AZP_PROXY_USERNAME=myuser \
9192
--from-literal=AZP_PROXY_PASSWORD=mypass \
9293
--from-literal=HTTP_PROXY=http://myuser:[email protected]:8888 \
9394
--from-literal=HTTPS_PROXY=https://myuser:[email protected]:8888 \
94-
--from-literal=NO_PROXY=.cluster.local,.ec2.internal,.svc,10.0.0.0/16,10.128.0.0/14,127.0.0.1,169.254.169.254,172.30.0.0/16,api-int.<my-cluster-subdomain>,<my-cluster-subdomain>,localhost
95+
--from-literal=NO_PROXY=.cluster.local,.ec2.internal,.svc,10.0.0.0/16,10.128.0.0/14,127.0.0.1,169.254.169.254,172.30.0.0/16,api-int.example.com,example.com,localhost
9596
```
9697

9798
Unauthenticated proxy can be defined as follows:
@@ -101,13 +102,7 @@ $ oc create secret generic azproxy \
101102
--from-literal=AZP_PROXY_URL=http://192.168.0.1:8888 \
102103
--from-literal=HTTP_PROXY=http://192.168.0.1:8888 \
103104
--from-literal=HTTPS_PROXY=https://192.168.0.1:8888 \
104-
--from-literal=NO_PROXY=.cluster.local,.ec2.internal,.svc,10.0.0.0/16,10.128.0.0/14,127.0.0.1,169.254.169.254,172.30.0.0/16,api-int.<my-cluster-subdomain>,<my-cluster-subdomain>,localhost
105-
```
106-
107-
The `NO_PROXY` proxy bypass configuration can be extracted from the [cluster-wide proxy]:
108-
109-
```
110-
oc get proxy -o jsonpath='{.items[0].status.no_proxy}'
105+
--from-literal=NO_PROXY=.cluster.local,.ec2.internal,.svc,10.0.0.0/16,10.128.0.0/14,127.0.0.1,169.254.169.254,172.30.0.0/16,api-int.example.com,example.com,localhost
111106
```
112107

113108
See the following table for a description of the above [environment variables]:

0 commit comments

Comments
 (0)