<div dir="ltr">Hi,<div><br></div><div>As the developers use locally on their machine "minishift", I'm wondering how we could add such option [2] to tell to minishift (= VM managed using xhyve, virtualbox, ... hypervisors) to just launch the master + controller manager</div><div><br></div><div>Maybe --> "minishift start --mode=hollow|normal[default]"</div><div><br></div><div>The command executed by minishift to launch OpenShift is</div><div><br></div><div>"minishift ssh</div><div>ps -ef | grep openshift</div><div>/usr/bin/openshift start --master-config=/var/lib/origin/openshift.local.config/master/master-config.yaml --node-config=/var/lib/origin/openshift.local.config/node-192.168.64.25/node-config.yaml"<br></div><div><br></div><div>Regards,</div><div><br></div><div>Charles</div><div class="gmail_extra"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:"Liberation Sans","Open Sans",sans-serif;line-height:22.4px"><b style="color:rgb(74,74,74)"><span></span></b></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Thu, May 4, 2017 at 4:11 PM, Steve Kuznetsov <span dir="ltr"><<a href="mailto:skuznets@redhat.com" target="_blank">skuznets@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, May 3, 2017 at 11:47 PM, Charles Moulliard <<a href="mailto:cmoullia@redhat.com">cmoullia@redhat.com</a>> wrote:<br>
> Hi Steve,<br>
><br>
> How do you start the master without the node ? Link to the test test-cmd<br>
> project ? If you do that, only the API Server is launched ?<br>
<br>
</span>Yep, we simply `openshift start master` [1] -- today IIRC that will<br>
start the master and controller manager. If using scripts inside of<br>
Origin seems like a good way to get what you need, though, I would<br>
suggest letting me know and using the newer helper functions in<br>
start.sh [2] instead of the first link, as they are a better UX.<br>
<br>
[1] <a href="https://github.com/openshift/origin/blob/master/hack/test-cmd.sh#L167-L170" rel="noreferrer" target="_blank">https://github.com/openshift/<wbr>origin/blob/master/hack/test-<wbr>cmd.sh#L167-L170</a><br>
[2] <a href="https://github.com/openshift/origin/blob/master/hack/lib/start.sh#L275-L302" rel="noreferrer" target="_blank">https://github.com/openshift/<wbr>origin/blob/master/hack/lib/<wbr>start.sh#L275-L302</a><br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> Regards<br>
><br>
> Charles<br>
><br>
><br>
> On Wed, May 3, 2017 at 7:01 PM, Steve Kuznetsov <<a href="mailto:skuznets@redhat.com">skuznets@redhat.com</a>> wrote:<br>
>><br>
>> Our test-cmd suite runs without the node for those reasons. You can simply<br>
>> start the master with an unavailable node for this to work.<br>
>><br>
>> Steve<br>
>><br>
>> On May 3, 2017 9:56 AM, "Jonathan Yu" <<a href="mailto:jawnsy@redhat.com">jawnsy@redhat.com</a>> wrote:<br>
>><br>
>><br>
>><br>
>> On Wed, May 3, 2017 at 9:43 AM, Charles Moulliard <<a href="mailto:cmoullia@redhat.com">cmoullia@redhat.com</a>><br>
>> wrote:<br>
>>><br>
>>> Hi,<br>
>>><br>
>>> I'm wondering if there is a java project which Mock an<br>
>>> OpenShift/Kubernetes server and where the HTTP requests are validated<br>
>>> against the API [1] ?<br>
>><br>
>><br>
>> I wonder if anyone has done "hollow node" for OpenShift, as is done in<br>
>> Kubernetes:<br>
>> <a href="https://github.com/kubernetes/kubernetes/blob/master/cmd/kubemark/hollow-node.go" rel="noreferrer" target="_blank">https://github.com/kubernetes/<wbr>kubernetes/blob/master/cmd/<wbr>kubemark/hollow-node.go</a><br>
>><br>
>> I think the idea is to have an API server without any controllers running,<br>
>> so you issue real API requests that are validated the same way that<br>
>> Kubernetes would normally do it, but nothing is actually created<br>
>> behind-the-scenes. I wonder if we can get it to run non-privileged on an<br>
>> OpenShift cluster, could be really useful for stubbing stuff out...<br>
>><br>
>> Have a question?<br>
>> First, check the FAQ: <a href="https://mojo.redhat.com/docs/DOC-943081" rel="noreferrer" target="_blank">https://mojo.redhat.com/docs/<wbr>DOC-943081</a><br>
>> Next, check the archives:<br>
>> <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>
>><br>
>><br>
><br>
</div></div></blockquote></div><br></div></div>