Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: unable to build kubernetes objects from release manifest: [unable to recognize "": no matches for kind "Deployment" in version "extensions/v1beta1", unable to recognize "": no matches for kind "Deployment" in version "apps/v1beta2"] #15

Open
vldanch opened this issue Sep 17, 2020 · 1 comment

Comments

@vldanch
Copy link

vldanch commented Sep 17, 2020

An error occurs

root@master0:/home/user/powerdns-helm# helm install powerdns . 
Error: unable to build kubernetes objects from release manifest: [unable to recognize "": no matches for kind "Deployment" in version "extensions/v1beta1", unable to recognize "": no matches for kind "Deployment" in version "apps/v1beta2"]

How to fix it?

@antoine-briand
Copy link

Hello @vldanch

There are two problems with this Helm chart.

First of all, it uses an outdated mariadb helm chart.

To fix I've changed the requirements.yaml file with :

dependencies:
- name: mariadb
  version: 7.10.3
  repository: https://charts.bitnami.com/bitnami
  condition: mariadb.enabled

Then run :

helm dependency update ./

This is what you shoud get :

Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "codecentric" chart repository
...Successfully got an update from the "jetstack" chart repository
...Successfully got an update from the "incubator" chart repository
...Successfully got an update from the "bitnami" chart repository
...Successfully got an update from the "stable" chart repository
Update Complete. ⎈Happy Helming!⎈
Saving 1 charts
Downloading mariadb from repo https://charts.bitnami.com/bitnami
Deleting outdated charts

The second problem beeing the deployment.yaml file in the templates folder. It uses an old version of the Kubernetes API, to fix it you should replace apiVersion: apps/v1beta2 by apiVersion: apps/v1

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

No branches or pull requests

2 participants