emqx-chart
emqx-chart copied to clipboard
Error: apiVersion 'v2' is not valid. The value must be "v1"
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 Please provide more information to help us locate the problem
@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 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?
@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 I suggest you upgrade to helm3 and retry emqx installation
@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