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/

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。