<div dir="ltr">Seems like you didn&#39;t fill the namespace parameter while creating an app: <a href="https://github.com/infinispan/infinispan-openshift-templates/blob/master/templates/infinispan-ephemeral.json#L336">https://github.com/infinispan/infinispan-openshift-templates/blob/master/templates/infinispan-ephemeral.json#L336</a><div><br></div><div>I already tried to eliminate this parameter (because it seems redundant) but currently there is no way to do it [1]. It s required for Role Binding which enables the Pod to query Kubernetes API and ask about Pods [2].</div><div><br></div><div>You may also try to use the third way:</div><div>oc policy add-role-to-user view system:serviceaccount:&lt;&lt;your namespace&gt;&gt;:&lt;&lt;service account used for Deployment Config&gt;&gt;<br></div><div><br></div><div>[1] <a href="https://github.com/infinispan/infinispan-openshift-templates/pull/9#discussion_r131409849">https://github.com/infinispan/infinispan-openshift-templates/pull/9#discussion_r131409849</a></div><div>[2] <a href="https://docs.openshift.com/enterprise/3.0/dev_guide/service_accounts.html">https://docs.openshift.com/enterprise/3.0/dev_guide/service_accounts.html</a></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Sep 25, 2017 at 12:54 PM Galder Zamarreño &lt;<a href="mailto:galder@redhat.com">galder@redhat.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey Sebastian,<br>
<br>
I&#39;ve started 2 instances of Infinispan ephemeral [1] and they don&#39;t seem to cluster together with the pods showing this message:<br>
<br>
10:51:12,014 WARN  [org.jgroups.protocols.kubernetes.KUBE_PING] (jgroups-4,datagrid-1-187kx) failed getting JSON response from Kubernetes Client[masterUrl=<a href="https://172.30.0.1:443/api/v1" rel="noreferrer" target="_blank">https://172.30.0.1:443/api/v1</a>, headers={Authorization=#MASKED:862#}, connectTimeout=5000, readTimeout=30000, operationAttempts=3, operationSleep=1000, streamProvider=org.jgroups.protocols.kubernetes.stream.InsecureStreamProvider@51522f72] for cluster [cluster], namespace [openshift], labels [application=datagrid]; encountered [java.lang.Exception: 3 attempt(s) with a 1000ms sleep to execute [OpenStream] failed. Last failure was [java.io.IOException: Server returned HTTP response code: 403 for URL: <a href="https://172.30.0.1:443/api/v1/namespaces/openshift/pods?labelSelector=application%3Ddatagrid" rel="noreferrer" target="_blank">https://172.30.0.1:443/api/v1/namespaces/openshift/pods?labelSelector=application%3Ddatagrid</a>]]<br>
<br>
These are the options I&#39;m giving to the template:<br>
<br>
oc process infinispan-ephemeral -p \<br>
  NUMBER_OF_INSTANCES=2 \<br>
  APPLICATION_NAME=datagrid \<br>
  APPLICATION_USER=developer \<br>
  APPLICATION_PASSWORD=developer<br>
<br>
I&#39;d expect this to work out of the box, or do you need to pass in a management usr/pwd for it to work?<br>
<br>
Cheers,<br>
<br>
[1] <a href="https://github.com/infinispan/infinispan-openshift-templates" rel="noreferrer" target="_blank">https://github.com/infinispan/infinispan-openshift-templates</a><br>
--<br>
Galder Zamarreño<br>
Infinispan, Red Hat<br>
<br>
</blockquote></div>