Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

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

Open
nitishpt opened this issue Jan 13, 2020 · 6 comments
Open

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

nitishpt opened this issue Jan 13, 2020 · 6 comments
Assignees

Comments

@nitishpt
Copy link

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"

@Rory-Z
Copy link
Contributor

Rory-Z commented Jan 13, 2020

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

@nitishpt
Copy link
Author

@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.

@emqplus emqplus assigned emqplus and Rory-Z and unassigned emqplus Jan 13, 2020
@Rory-Z
Copy link
Contributor

Rory-Z commented Jan 16, 2020

@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?

@nitishpt
Copy link
Author

@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"

@Rory-Z
Copy link
Contributor

Rory-Z commented Jan 16, 2020

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

@nitishpt
Copy link
Author

nitishpt commented Jan 16, 2020

@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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants