emqx-chart icon indicating copy to clipboard operation
emqx-chart copied to clipboard

Error: apiVersion 'v2' is not valid. The value must be "v1"

Open nitishpt opened this issue 5 years ago • 6 comments

Unable to install emqx via helm chart repo

Versions:

Helm: v2.15.2 Kubernetes: v1.16.2

Error thrown while installing helm chart for emqx via the following steps:

helm repo add emqx https://repos.emqx.io/charts
helm install --namespace iot-pipeline --name emqx -f values-production.yaml emqx/emqx --devel

Error: Error: apiVersion 'v2' is not valid. The value must be "v1"

nitishpt avatar Jan 13 '20 08:01 nitishpt

@nitishpt Please provide more information to help us locate the problem

Rory-Z avatar Jan 13 '20 09:01 Rory-Z

@zhanghongtong I had the cluster up and running a few days ago in my bare-metal K8s and I installed it via helm repo only. I took down the cluster to make some changes with my storage and PVs. Now, when I try to install it again, it is throwing me this error.

Note: I am currently able to install emqx cluster by cloning the repo locally and then using the chart from there.

nitishpt avatar Jan 13 '20 10:01 nitishpt

@nitishpt Can you run helm install --namespace iot-pipeline --name emqx -f values-production.yaml emqx/emqx --devel --dry-run --debug and show me the results?

Rory-Z avatar Jan 16 '20 01:01 Rory-Z

@zhanghongtong Here it is:

[debug] Created tunnel using local port: '32851'

[debug] SERVER: "127.0.0.1:32851"

[debug] Original chart version: ""
[debug] setting version to >0.0.0-0
[debug] Fetched emqx/emqx to /home/nitish.pant/.helm/cache/archive/emqx-v4.0-rc.4.tgz

[debug] CHART PATH: /home/nitish.pant/.helm/cache/archive/emqx-v4.0-rc.4.tgz

Error: apiVersion 'v2' is not valid. The value must be "v1"

nitishpt avatar Jan 16 '20 05:01 nitishpt

@nitishpt I suggest you upgrade to helm3 and retry emqx installation

Rory-Z avatar Jan 16 '20 08:01 Rory-Z

@zhanghongtong Okay. Though I still don't get why this error is being thrown. AFAIK, isn't the EMQX chart using apiVersion as 'v1'?

Edit: Here: https://github.com/emqx/emqx-chart/blob/03cb0c962a6cf26bda4870178ad4321f09944262/charts/emqx/Chart.yaml#L1

nitishpt avatar Jan 16 '20 08:01 nitishpt