profile
viewpoint

Ask questionsupgrade apiVersion in k8s from 1.14 to 1.16 FAILED

We use kubernetes cluster 1.14 and planning to upgrade 1.16 but deprecated API removed in 1.16 as extensions/v1beta1, apps/v1beta1, and apps/v1beta2 to apps/v1. After upgrade to 1.16 whole deprecated deployment api still serve but you have to use in subsequent release apps/v1 for deployment and helm (2.16.1) throw following error:

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

ATTENTION if you are trying use --force your release would be deleted with error:

UPGRADE FAILED
Error: Upgrade --force successfully deleted the previous release, but encountered 1 error(s) and cannot continue: unable to recognize "": no matches for kind "Deployment" in version "apps/v1beta2"
Error: UPGRADE FAILED: Upgrade --force successfully deleted the previous release, but encountered 1 error(s) and cannot continue: unable to recognize "": no matches for kind "Deployment" in version "apps/v1beta2"

Output of helm version: 2.16.1

helm/helm

Answer questions hickeyma

Duplicate of #7219

useful!

Related questions

Error: validation: chart.metadata is required when using --repo - helm hot 4
"Error: Transport is closing" message when attempting to install hot 2
Error: open .helm\repository\cache\local-index.yaml hot 2
"helm dep build" fails if requirements.yaml contains local dependencies and remote one hot 2
Helm upgrade fails the release after adding a new resource hot 2
Error: could not find a ready tiller pod hot 2
Error: apiVersion 'v2' is not valid. The value must be "v1" hot 2
Unable to start Tiller pod, bind address already in use hot 2
Upgrading releases with immutable resources (e.g. persitentVolume) hot 2
helm 3: Not able to push chart to docker hub hot 1
`helm upgrade --recreate-pods` flag should do a soft restart - helm hot 1
Helm3: No 'init', doesn't use existing ~/.helm hot 1
No kind Job is registered for version batch/v1 hot 1
`Error: rendered manifests contain a resource that already exists` but nothing shows up on `helm list --all` - helm hot 1
error calling eq: invalid type for comparison hot 1
Github User Rank List