vernemq/docker-vernemq

helm chart installation error

sdavid63 opened this issue · 15 comments

Hello,
I try to install vernemq via helm charts on my ovhcloud managed kubernetes service (1.22.2-2) but i have the following error

sdavid@ubv8-r2d2:~$ helm install vernemq/vernemq --generate-name
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /home/sdavid/.kube/config
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /home/sdavid/.kube/config
Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(StatefulSet.spec.template.spec.containers[0].envFrom): invalid type for io.k8s.api.core.v1.Container.envFrom: got "map", expected "array"

What i'm doing wrong ?

Thank you

You're not doing anything wrong – the chart is broken. The problem has been fixed since but no update has been released.

The workaround for that particular problem is to define envFrom: [] under vernemq.

I'm new to kubernetes and helm, my problem is failed to download vernemq charts on my MacOS like pic below :
image

Is that the same problem you mentioned upon "the chart is broken" ? @agronholm Thank you.

Is that the same problem you mentioned upon "the chart is broken" ? @agronholm Thank you.

No. You don't have the vernemq repository added.

Any update on the fix for helm chart?

maelp commented

How do you add the vernemq repository? there's no explanation in the documentation?

How do you add the vernemq repository? there's no explanation in the documentation?

It's right at the start, here.

@maelp
helm repo add vernemq https://vernemq.github.io/docker-vernemq

helm search repo -l vernemq
Does this help?

maelp commented

Thanks :)

Thanks :) would be perhaps useful to add this to the README ;)

Huh? I literally just pointed out where it is in the README!

@agronholm @maelp Thanks for helping out! I need more coffee too :)

maelp commented

Thanks @agronholm @ioolkos

When installing the latest Helm chart on GKE Autopilot, I have a CrashLoopBackoff of the pod, I tried using envFrom: [] (but it seems to be the default in values.yaml now anyway) and it doesn't seem to change anything

Do you know if the latest version (1.8.1) is working, or should we downgrade the version?

    error: update failed

  kubernetes:apps/v1:StatefulSet (vernemq/vernemq):
    error: 3 errors occurred:
    	* the Kubernetes API server reported that "vernemq/vernemq" failed to fully initialize or become live: 'vernemq' timed out waiting to be Ready
    	* 0 out of 1 replicas succeeded readiness checks
    	* [Pod vernemq/vernemq-0]: containers with unready status: [vernemq] -- [CrashLoopBackOff] back-off 5m0s restarting failed container=vernemq pod=vernemq-0_vernemq(e9c48636-2cc6-4364-8432-0869f1af9bec)

This is how I install the chart (using Pulumi)

chart_ns = Namespace("vernemq", metadata=ObjectMetaArgs(name="vernemq"))
chart = Chart(
    "vernemq",
    config=ChartOpts(
        fetch_opts={"repo": "https://vernemq.github.io/docker-vernemq"},
        chart="vernemq",
        version="1.8.1",
        namespace=chart_ns.metadata.name,
        values={
            "envFrom": []  # To fix installation issue https://github.com/vernemq/docker-vernemq/issues/300
        },
    ),
    opts=pulumi.ResourceOptions(provider=k8s_provider, depends_on=[chart_ns]),
)
maelp commented

(for the README, I was speaking about the one in the Helm chart dir, which does not mention the repo https://github.com/vernemq/docker-vernemq/blob/master/helm/vernemq/README.md)

@maelp can't really help on GKE Autopilot and Pulumi. Is there a way to get to more logs?

maelp commented

Okay seems that now it works, perhaps I had forgotten to set DOCKER_VERNEMQ_ACCEPT_EULA