<div dir="ltr">Hi Charles,<div><br></div><div>what if you use the service IP: <span style="font-size:12.8px">172.30.197.92 ?</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">you can check name resolution also with: getent hosts say-service</span></div><div><span style="font-size:12.8px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 8, 2017 at 9:59 AM, Charles Moulliard <span dir="ltr"><<a href="mailto:cmoullia@redhat.com" target="_blank">cmoullia@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I can't curl anymore a kube service using the service address with Openshift 3.7 within the terminal of a pod/container. </div><div><br></div><div>Is there something broken/changed with internal DNS Server used by k8s since openshift 3.6 ?</div><div><br></div><div>Here is the scenario followed to install Openshift, Demo project<br></div><div><div><br></div><div># Setup minishift with Openshift</div><div>minishift version</div><div><div>minishift v1.9.0+a511b25</div></div><div><br></div><div>minishift --profile istio-demo config set image-caching true</div><div>minishift --profile istio-demo config set memory 3GB</div><div>minishift --profile istio-demo config set openshift-version v3.7.0</div><div>minishift --profile istio-demo config set vm-driver xhyve</div><div>minishift --profile istio-demo addon enable admin-user</div><div>minishift start --profile istio-demo</div><div><br></div><div># Log and install the demo</div><div>oc login -u admin -p admin</div><div><br></div><div>pushd $(mktemp -d)</div><div>git clone git@github.com:snowdrop/<wbr>spring-boot-quickstart-istio.<wbr>git && cd spring-boot-quickstart-istio</div><div>oc new-project demo</div><div>cd greeting-service</div><div>mvn clean package fabric8:deploy -Popenshift</div><div>cd ../say-service</div><div>mvn clean package fabric8:deploy -Popenshift</div><div><br></div><div>sleep 15s</div><div>oc get svc/say-service -o yaml<br></div><div>apiVersion: v1</div><div>kind: Service</div><div>metadata:</div><div>  labels:</div><div>    app: say-service</div><div>    expose: "true"</div><div>    group: me.snowdrop</div><div>    provider: fabric8</div><div>    version: 1.0-SNAPSHOT</div><div>  name: say-service</div><div>  namespace: demo</div><div>spec:</div><div>  clusterIP: 172.30.197.92</div><div>  ports:</div><div>  - name: http</div><div>    port: 8080</div><div>    protocol: TCP</div><div>    targetPort: 8080</div><div>  selector:</div><div>    app: say-service</div><div>    group: me.snowdrop</div><div>    provider: fabric8</div><div>  sessionAffinity: None</div><div>  type: ClusterIP</div><div>status:</div><div>  loadBalancer: {}</div><div><br></div><div># Rsh to the container</div><div><br></div><div>oc rsh $(oc get pods -o jsonpath='{.items[*].<a href="http://metadata.name" target="_blank">metadata.<wbr>name</a>}' -l app=say-service)</div><div><div>sh-4.2$ curl <a href="http://localhost:8080/say" target="_blank">http://localhost:8080/say</a></div><div>{"id":7,"content":"Hello, World!"}</div><div><br></div><div>sh-4.2$ curl http://$HOSTNAME:8080/say</div><div>{"id":8,"content":"Hello, World!"}sh-4.2</div><div><br></div><div>$ podIP=$(grep `hostname` /etc/hosts | awk '{print $1}')</div><div>sh-4.2$ echo $podIP</div><div>172.17.0.14</div><div>sh-4.2$ curl  $podIP:8080/say<br></div><div>{"id":9,"content":"Hello, World!"}</div><div><br></div><div>##### FAIL TO REPLY #######</div><div>sh-4.2$ curl <a href="http://say-service.demo.svc.cluster.local:8080/say" target="_blank">http://say-service.demo.svc.<wbr>cluster.local:8080/say</a></div><div>^C</div><div>sh-4.2$ curl <a href="http://say-service:8080/say" target="_blank">http://say-service:8080/say</a></div><div>^C</div></div></div><div><br></div><div>Regards,</div><div><br></div><div>Charles</div><div><br></div><div><div><div class="m_6776994460313585932gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-size:10px"><div></div></div></div></div></div></div></div></div></div></div>
</div></div>
<br>Have a question?<br>
First, check the FAQ: <a href="https://pnt.redhat.com/pnt/p-734673/openshift-con...-Jun-2017.pdf" rel="noreferrer" target="_blank">https://pnt.redhat.com/pnt/p-<wbr>734673/openshift-con...-Jun-<wbr>2017.pdf</a><br>
Next, check the archives: <a href="http://post-office.corp.redhat.com/archives/openshift-sme/" rel="noreferrer" target="_blank">http://post-office.corp.<wbr>redhat.com/archives/openshift-<wbr>sme/</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><pre cols="72">Akram Ben Aissi                         Mob : +33 6 31 57 08 60
Cloud and Platform Architect            Mel : <a href="mailto:akram.benaissi@redhat.com" target="_blank">akram.benaissi@redhat.com</a>
Red Hat Global Services                 Irc : akram 
                                        Twi : <a href="mailto:akram.benaissi@redhat.com" target="_blank">@</a>akrambenaissi
Red Hat France SARL                     <a href="http://www.redhat.fr" target="_blank">http://www.redhat.fr</a></pre></div></div></div></div></div></div>
</div>