<div dir="ltr">minikube has support for the command too "minikube service" though it only understands nodeports AFAIK. On openshift we need to detect & support Routes and/or nodeports depending on if there's a Route or service of type NodePort</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 10, 2017 at 12:34 PM, Burr Sutter <span dir="ltr"><<a href="mailto:bsutter@redhat.com" target="_blank">bsutter@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>That sounds interesting, how does minikube deal with this scenario?</div><div><br></div><div>Perhaps my thinking is warped but by default, Services are inside the cluster, therefore you need to be inside the VM in order to curl them </div><div class="HOEnZb"><div class="h5"><div><br><div class="gmail_quote"><div>On Wed, May 10, 2017 at 12:29 PM James Strachan <<a href="mailto:jstracha@redhat.com" target="_blank">jstracha@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>FWIW gofabric8 has a 'gofabric8 service foo' which shows the URL to access a service via its route / nodeport / ingress etc. Its pretty simple code; we use something similar in funktion (funktion url foo)<div><br></div><div>Maybe we need to add the service command to minishift too?<br><div><br></div></div></div><div class="gmail_extra"></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 10, 2017 at 12:08 PM, Burr Sutter <span><<a href="mailto:bsutter@redhat.com" target="_blank">bsutter@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>What is the trick to always get a nodeport for every Service I create? </div><div>Right now, I do need the oc binary INSIDE the VM because I like to show that Services are normally in-VM only and Routes make them visible to the outside world (my laptops OS)</div><div><br></div><div>But I can likely make the same point with nodeport</div><div class="m_-2221850291274752350m_-9013044956844782583HOEnZb"><div class="m_-2221850291274752350m_-9013044956844782583h5"><div><br></div><div><br><div class="gmail_quote"><div>On Wed, May 10, 2017 at 4:52 AM Praveen Kumar <<a href="mailto:prkumar@redhat.com" target="_blank">prkumar@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="gmail_extra"><div class="gmail_quote">On Wed, May 10, 2017 at 9:15 AM, Gerard Braad <span><<a href="mailto:gbraad@redhat.com" target="_blank">gbraad@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<span><br>
On Wed, May 10, 2017 at 2:58 AM, Lalatendu Mohanty <<a href="mailto:lmohanty@redhat.com" target="_blank">lmohanty@redhat.com</a>> wrote:<br>
> Sure will do. With CDK 3 we do not have Kubernetes bits in the ISO/VM e.g.<br>
> kubectl binary. So we need to figure out if it is just the extra kubectl we<br>
> need or something else.<br>
<br>
</span>`kubectl` should be treated like `oc`, and should therefore not be<br>
part of the ISO/VM for Minishift/CDK 3?<br></blockquote><div><br></div></div></div></div><div><div class="gmail_extra"><div class="gmail_quote"><div>Adding `kubectl` binary to iso shouldn't be intention but it should be treated like 'oc'. We are already advertising openshift as enterprise ready kubernetes so kube related stuff should work as expected IMO.<br></div></div></div></div><div><div class="gmail_extra"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
However, reading the instructions, this behaviour is also different for `oc`<br>
<br>
<br>
rhel-ose$ vagrant ssh<br>
#Inside CDK shell - Create a Kubernetes context - We will use the<br>
OpenShift Client (oc) as as shortcut<br>
[vagrant@rhel-cdk ~]$ oc login -u openshift-dev -p devel<br>
<br>
<br>
which means that `oc` is on the path inside the VM. is this still the<br>
case for CDK 3.x?<br></blockquote><div><br></div></div></div></div><div><div class="gmail_extra"><div class="gmail_quote"><div>No, we did this for CDK-2.x because it was required to provision openshift inside the VM but right now we are using client binary outside VM to provision it.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
WDYT?<br>
<span class="m_-2221850291274752350m_-9013044956844782583m_2142993556099918722m_-637468873238999704HOEnZb"><font color="#888888"><br>
<br>
Gerard<br>
</font></span></blockquote></div></div></div><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_-2221850291274752350m_-9013044956844782583m_2142993556099918722m_-637468873238999704HOEnZb"><div class="m_-2221850291274752350m_-9013044956844782583m_2142993556099918722m_-637468873238999704h5"><br>
______________________________<wbr>_________________<br>
Devtools mailing list<br>
<a href="mailto:Devtools@redhat.com" target="_blank">Devtools@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/devtools" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/devtools</a><br>
</div></div></blockquote></div></div></div><div><div class="gmail_extra"><br><br clear="all"><br>-- <br><div class="m_-2221850291274752350m_-9013044956844782583m_2142993556099918722m_-637468873238999704gmail_signature" data-smartmail="gmail_signature">Praveen Kumar<br><a href="https://fedoraproject.org/wiki/User:Kumarpraveen" target="_blank">https://fedoraproject.org/<wbr>wiki/User:Kumarpraveen</a></div>
</div></div>
______________________________<wbr>_________________<br>
Devtools mailing list<br>
<a href="mailto:Devtools@redhat.com" target="_blank">Devtools@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/devtools" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/devtools</a><br>
</blockquote></div></div>
</div></div><br>______________________________<wbr>_________________<br>
Devtools mailing list<br>
<a href="mailto:Devtools@redhat.com" target="_blank">Devtools@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/devtools" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/devtools</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br></div><div class="gmail_extra"><div class="m_-2221850291274752350m_-9013044956844782583gmail_signature" data-smartmail="gmail_signature"><div><div style="font-size:12.8px">James<br>-------<br>Red Hat<br><br>Twitter: @jstrachan<br>Email: <a href="mailto:james.strachan@gmail.com" target="_blank">james.strachan@gmail.<wbr>com</a></div><div style="font-size:12.8px">Blog: <a href="https://medium.com/@jstrachan/" target="_blank">https://medium.com/@<wbr>jstrachan/</a><br><br><div><div>fabric8: <a href="https://fabric8.io/" target="_blank">https://fabric8.io/</a></div><div>open source development platform</div><div><br></div><div>funktion: <a href="https://funktion.fabric8.io/" target="_blank">https://funktion.<wbr>fabric8.io/</a></div><div>open source event based lambda programming</div></div></div></div></div>
</div>
</blockquote></div></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr" style="font-size:12.8px">James<br>-------<br>Red Hat<br><br>Twitter: @jstrachan<br>Email: <a href="mailto:james.strachan@gmail.com" target="_blank">james.strachan@gmail.com</a></div><div dir="ltr" style="font-size:12.8px">Blog: <a href="https://medium.com/@jstrachan/" target="_blank">https://medium.com/@jstrachan/</a><br><br><div dir="ltr"><div dir="ltr">fabric8: <a href="https://fabric8.io/" target="_blank">https://fabric8.io/</a></div><div dir="ltr">open source development platform</div><div dir="ltr"><br></div><div dir="ltr">funktion: <a href="https://funktion.fabric8.io/" target="_blank">https://funktion.fabric8.io/</a></div><div dir="ltr">open source event based lambda programming</div></div></div></div></div>
</div>