UPGRADE FAILED: failed decoding reader into objects: unable to recognize "": no matches for kind...

问题

应用市场报错提示
Failed to install app xdata-plat. Error: UPGRADE FAILED: failed decoding reader into objects: unable to recognize "": no matches for kind "Deployment" in version "apps/v1beta2"
环境:k8s v1.18.4,helm2 rancher v2.4.5
执行命令
rancher apps install cattle-global-data:xxx-library-spring-boot --version 0.1.0 -n data-service --answers /tmp/values.js --set author=shao.hongxiao --set image=data-harbor.xxx.com.cn/data-service/xdata-plat:fc428977 --set env.profile_name=prod xdata-plat

解决

应到文件的问题,删除应答文件最后末尾的回车换行符即可

参考
https://www.fenghong.tech/blog/kubernetes/kubernetes-1.18-helm-upgrade-error/

你可能感兴趣的:(UPGRADE FAILED: failed decoding reader into objects: unable to recognize "": no matches for kind...)