<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/spring-boot-quickstart-istio.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">metadata.name</a>}' -l app=say-service)</div><div><div>sh-4.2$ curl <a href="http://localhost:8080/say">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">http://say-service.demo.svc.cluster.local:8080/say</a></div><div>^C</div><div>sh-4.2$ curl <a href="http://say-service:8080/say">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="gmail_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>