2

When I try to deploy jenkins-ephemeral on openshift 1.5, it fails with the following error message

error: couldn't get deployment jenkins-3: Get https://172.30.0.1:443/api/v1/namespaces/projectname/replicationcontrollers/jenkins-3: dial tcp 172.30.0.1:443: getsockopt: network is unreachable

I have services enabled

oc get services
NAME           CLUSTER-IP       EXTERNAL-IP   PORT(S)     AGE
jenkins        172.30.86.254    <none>        80/TCP      59m
jenkins-jnlp   172.30.132.179   <none>        50000/TCP   59m

but from the node I can't telnet to port 80 of 172.30.86.254

telnet: connect to address 172.30.86.254: Connection refused

but the 443 port of the same machine is reachable.

1
  • what does oc status -v show? – mghicks Feb 9 '18 at 16:20
0

This seems to be a proxy issue in your config. It is solved by setting NO_PROXY as follows:

Edit the proxy environment variables in the OpenShift Origin control files. Ensure all of the files in the cluster are correct.

HTTP_PROXY=http://<user>:<password>@<ip_addr>:<port>/
HTTPS_PROXY=https://<user>:<password>@<ip_addr>:<port>/
NO_PROXY=master.hostname.example.com,10.1.0.0/16,172.30.0.0/16 

Supports host names and CIDRs. Must include the SDN network and service IP ranges 10.1.0.0/16,172.30.0.0/16 by default.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.