<div dir="ltr">Hi Talur,<div><br></div><div>I've successfully got Gluster deployed as a DaemonSet using k8s spec file glusterfs-daemonset.json from <a href="https://github.com/heketi/heketi/tree/master/extras/kubernetes">https://github.com/heketi/heketi/tree/master/extras/kubernetes</a></div><div><br></div><div>but then when I try deploying heketi using heketi-deployment.json spec file, I end up with a CrashLoopBackOff pod.</div><div><br></div><div><br></div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"># kubectl get pods</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">NAME READY STATUS RESTARTS AGE</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">deploy-heketi-930916695-tq4ks 0/1 CrashLoopBackOff 11 35m</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small">kubectl describe gives me the following error:</span><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Warning<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>FailedSync<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>Error syncing pod, skipping: failed to "StartContainer" for "deploy-heketi" with CrashLoopBackOff: "Back-off 20s restarting failed container=deploy-heketi pod=deploy-heketi-930916695-qpngx_default(f97e7bdc-6dd5-11e7-b8b5-3cfdfea552a8)"</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small">and the pod logs are as follows:</span><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"># kubectl logs deploy-heketi-930916695-qpngx</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Heketi v4.0.0-8-g9372c22-release-4</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">[kubeexec] ERROR 2017/07/21 05:37:11 /src/<a href="http://github.com/heketi/heketi/executors/kubeexec/kubeexec.go:125">github.com/heketi/heketi/executors/kubeexec/kubeexec.go:125</a>: Namespace must be provided in configuration: File /var/run/secrets/<a href="http://kubernetes.io/serviceaccount/namespace">kubernetes.io/serviceaccount/namespace</a> not found</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">[heketi] ERROR 2017/07/21 05:37:11 /src/<a href="http://github.com/heketi/heketi/apps/glusterfs/app.go:85">github.com/heketi/heketi/apps/glusterfs/app.go:85</a>: Namespace must be provided in configuration: File /var/run/secrets/<a href="http://kubernetes.io/serviceaccount/namespace">kubernetes.io/serviceaccount/namespace</a> not found</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">
</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">ERROR: Unable to start application</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small">so what am I missing here?</span><br></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 24, 2017 at 6:14 AM, Vijay Bellur <span dir="ltr"><<a href="mailto:vbellur@redhat.com" target="_blank">vbellur@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 Bishoy,<div><br></div><div>Adding Talur who can help address your queries on Heketi.</div><div><br></div><div>@wattsteve's github repo on glusterfs-kubernetes is a bit dated. You can either refer to gluster/gluster-kubernetes or heketi/heketi for current documentation and operational procedures.</div><div><br></div><div>Regards,</div><div>Vijay</div><div><br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Fri, Jul 21, 2017 at 2:19 AM, Bishoy Mikhael <span dir="ltr"><<a href="mailto:b.s.mikhael@gmail.com" target="_blank">b.s.mikhael@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi,<div><br></div><div>I'm trying to deploy Gluster and Heketi on a Kubernetes cluster</div><div>I'm following the guide at <a href="https://github.com/gluster/gluster-kubernetes/" target="_blank">https://github.com/gluster/<wbr>gluster-kubernetes/</a></div><div>but the video referenced in the page is showing json files used while the git repo has only yaml files, they are quiet similar though, but Gluster is a deployment not a DaemonSet.</div><div><br></div><div>I deploy Gluster DaemonSet successfully, but heketi is giving me the following error:</div><div><br></div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"># kubectl logs deploy-heketi-930916695-np4hb</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Heketi v4.0.0-8-g9372c22-release-4</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">[kubeexec] ERROR 2017/07/21 06:08:52 /src/<a href="http://github.com/heketi/heketi/executors/kubeexec/kubeexec.go:125" target="_blank">github.com/heketi/heketi/<wbr>executors/kubeexec/kubeexec.go<wbr>:125</a>: Namespace must be provided in configuration: File /var/run/secrets/<a href="http://kubernetes.io/serviceaccount/namespace" target="_blank">kubernetes.io<wbr>/serviceaccount/namespace</a> not found</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">[heketi] ERROR 2017/07/21 06:08:52 /src/<a href="http://github.com/heketi/heketi/apps/glusterfs/app.go:85" target="_blank">github.com/heketi/heketi/<wbr>apps/glusterfs/app.go:85</a>: Namespace must be provided in configuration: File /var/run/secrets/<a href="http://kubernetes.io/serviceaccount/namespace" target="_blank">kubernetes.io<wbr>/serviceaccount/namespace</a> not found</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">ERROR: Unable to start application</span></p></div><div><br></div><div>What am I doing wrong here?!</div><div><br></div><div>I found more than one source for documentation about how to use Gluster as a persistent storage for kubernetes, some of them are:</div><div><a href="https://github.com/heketi/heketi/wiki/Kubernetes-Integration" target="_blank">https://github.com/heketi/heke<wbr>ti/wiki/Kubernetes-Integration</a><br></div><div><a href="https://github.com/wattsteve/glusterfs-kubernetes" target="_blank">https://github.com/wattsteve/g<wbr>lusterfs-kubernetes</a><br></div><div><br></div><div>Which one to follow?!</div><div><br></div><div>Also I've created a topology file as noted by one of the documentation, but I don't know how to provide it to heketi.</div><div><br></div><div>Regards,</div><div>Bishoy Mikhael</div></div>
<br></div></div>______________________________<wbr>_________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
<a href="http://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://lists.gluster.org/mailm<wbr>an/listinfo/gluster-users</a><br></blockquote></div><br></div></div>
</blockquote></div><br></div>