Skip to content

Helm v2.16: no matches for kind "Deployment" in version "apps/v1beta1" #6969

@discostur

Description

@discostur

Hi,

i know that k8s v1.16 deprecated the old API versions - but i don't know how helm handles this. I did the following:

  • installed k8s v1.15.x cluster
  • install stable/fluentd with API version apps/v1beta1
  • upgrade k8s -> 1.16.x

Now i try to update the fluentd chart / deployment which was upgraded to the new api versions already (apps/v1 https://github.com/helm/charts/blob/master/stable/fluentd/templates/deployment.yaml) and i get the following error:

helm upgrade --install --recreate-pods fluentd stable/fluentd

UPGRADE FAILED
Error: failed decoding reader into objects: unable to recognize "": no matches for kind "Deployment" in version "apps/v1beta1"
Error: UPGRADE FAILED: failed decoding reader into objects: unable to recognize "": no matches for kind "Deployment" in version "apps/v1beta1"

I can now delete the helm fluentd chart and reinstall it but that seems not to be the correct way ... is there any migration path?

Output of helm version:

Client: &version.Version{SemVer:"v2.16.0", GitCommit:"e13bc94621d4ef666270cfbe734aaabf342a49bb", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.16.0", GitCommit:"e13bc94621d4ef666270cfbe734aaabf342a49bb", GitTreeState:"clean"}

Output of kubectl version:

Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.2", GitCommit:"c97fe5036ef3df2967d086711e6c0c405941e14b", GitTreeState:"clean", BuildDate:"2019-10-15T19:18:23Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.2", GitCommit:"c97fe5036ef3df2967d086711e6c0c405941e14b", GitTreeState:"clean", BuildDate:"2019-10-15T19:09:08Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions