問(wèn)題
應(yīng)用市場(chǎng)報(bào)錯(cuò)提示
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"
環(huán)境:k8s v1.18.4吱雏,helm2 rancher v2.4.5
執(zhí)行命令
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
解決
應(yīng)到文件的問(wèn)題岳颇,刪除應(yīng)答文件最后末尾的回車換行符即可
參考
https://www.fenghong.tech/blog/kubernetes/kubernetes-1.18-helm-upgrade-error/