Answers: <p>This seems to be <a href="https://github.com/openshift/origin/issues/14742" rel="nofollow noreferrer">a proxy issue</a> in your config. It is solved by <a href="https://docs.openshift.org/latest/install_config/http_proxies.html#configuring-no-proxy" rel="nofollow noreferrer">setting NO_PROXY</a> as follows:</p>
  
  <blockquote>
    <p>Edit the proxy environment variables in the OpenShift Origin control files. Ensure all of the files in the cluster are correct.</p>
  </blockquote>
  
  <pre><code>HTTP_PROXY=http://&lt;user&gt;:&lt;password&gt;@&lt;ip_addr&gt;:&lt;port&gt;/
  HTTPS_PROXY=https://&lt;user&gt;:&lt;password&gt;@&lt;ip_addr&gt;:&lt;port&gt;/
  NO_PROXY=master.hostname.example.com,10.1.0.0/16,172.30.0.0/16 
  </code></pre>
  
  <blockquote>
    <p>Supports host names and <a href="https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing" rel="nofollow noreferrer">CIDRs</a>. Must include the <a href="https://en.wikipedia.org/wiki/Software-defined_networking" rel="nofollow noreferrer">SDN network</a> and service IP ranges 10.1.0.0/16,172.30.0.0/16 by default.</p>
  </blockquote>
  
Answers: CC BY-SA 3.0
Answers: 2018-03-21T16:42:59.903Z
Answers: 2018-03-21T16:42:59.903Z
Answers: mico
Body: <p>When I try to deploy jenkins-ephemeral on openshift 1.5, it fails with the following error message</p>
  
  <pre><code>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
  </code></pre>
  
  <p>I have services enabled</p>
  
  <pre><code>oc get services
  NAME           CLUSTER-IP       EXTERNAL-IP   PORT(S)     AGE
  jenkins        172.30.86.254    &lt;none&gt;        80/TCP      59m
  jenkins-jnlp   172.30.132.179   &lt;none&gt;        50000/TCP   59m
  </code></pre>
  
  <p>but from the node I can't telnet to port 80 of 172.30.86.254</p>
  
  <pre><code>telnet: connect to address 172.30.86.254: Connection refused
  </code></pre>
  
  <p>but the 443 port of the same machine is reachable.</p>
  
Comments: CC BY-SA 3.0
Comments: 2018-02-09T16:20:39.747Z
Comments: what does ```oc status -v``` show?
Comments: mghicks
Tags: <jenkins><kubernetes>
Title: openshift fails to deploy jenkins
UserDisplayName: Edik Mkoyan
ThreadText: # openshift fails to deploy jenkins
  
  (Asked by: username_0 on 2017-05-29)
  
  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.
  
  **Tags:** jenkins, kubernetes
  
  > **Comments:**
  > **username_1**: what does ```oc status -v``` show?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2018-03-21. Score: 0 | Accepted answer
  
  This seems to be [a proxy issue](https://github.com/openshift/origin/issues/14742) in your config. It is solved by [setting NO\_PROXY](https://docs.openshift.org/latest/install_config/http_proxies.html#configuring-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](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). Must include the [SDN network](https://en.wikipedia.org/wiki/Software-defined_networking) and service IP ranges 10.1.0.0/16,172.30.0.0/16 by default.
  
  
  ---
  
  