opencord / voltha-helm-charts

Apache License 2.0
8 stars 5 forks source link

Error installing VOLTHA infrastructure with Helm charts (Kubernetes 1.25) #5

Open samer955 opened 1 year ago

samer955 commented 1 year ago

Hi everyone,

I'm trying to install Voltha with Helm Charts following the guide in this repository. By running the command helm upgrade --install --create-namespace -n infra voltha-infra onf/voltha-infra to install voltha infra i get the following error:

Error: unable to build kubernetes objects from release manifest: resource mapping not found for name: "voltha-infra-atomix-pdb" namespace: "" from "": no matches for kind "PodDisruptionBudget" in version "policy/v1beta1" ensure CRDs are installed first

I know that "policy/v1beta" is in Kubernetes 1.25 deprecated so I cloned the repository and tried to change all the fields where it appears to "policy/v1" (which is the one supported in K8s 1.25). The only one field i found was in voltha-infra/templates/etcd-periodic-defrag.yaml:17:apiVersion: batch/v1beta1 which i changed in batch/v1.

Unfortunately i get the same error installing the helm Charts from the repo... any suggestions?

(I tried also providing another version of Voltha Infra when running the command to install it)

mehmetmgrsl commented 1 year ago

Hi all,

I had the same error. After applying the following steps, I could install the chart on a K8S cluster (v1.25) successfully.

  1. Clone the voltha-helm-chart    git clone https://github.com/opencord/voltha-helm-charts.git

  2. Under the voltha-helm-charts/voltha-infra/,  run helm dependency build to fetch the dependencies.

  3. Extract the tgz file of the onos-classic-0.1.29.tgz to voltha-helm-charts/voltha-infra/charts folder and replace policy/v1beta with policy/v1 in all files in the onos-classic folder.

  4. Finally, create the onos-classic-0.1.29.tgz file again: tar -zcvf onos-classic-0.1.29.tgz onos-classic

LeoMeres commented 1 year ago

Hi, I had the same issue. Thanks @mehmetmgrsl, this solution worked for me as well.