132. 由于现有 CRD 的限制,Rancher监控重新安装正在失败
Situation 地理位置
The Rancher Monitoring Chart reinstallation is failing with Web-hook errors as below.
牧场主监控图表的重装失败,出现如下的 Web-hook 错误。
<span style="color:#000000"><span style="background-color:#ffffff"><span style="background-color:#efefef"><code>Error: UPGRADE FAILED: failed to create resource: Internal error occurred: failed calling webhook "<a>
Resolution 结局
List the leftover webhook configurations that remain from the last chart installations. The Backup of these web hooks are not require.
列出上次图表安装后剩余的 Webhook 配置。这些网络钩子的备份并非必需。
<span style="color:#000000"><span style="background-color:#ffffff"><span style="background-color:#f3f3f3">kubectl get crd | grep monitoring.coreos kubectl get validatingwebhookconfiguration | grep rancher-monitoring-admission</span></span></span>
Delete all listed resources according to the steps below.
请按照以下步骤删除所有列出的资源。
<span style="color:#000000"><span style="background-color:#ffffff"><span style="background-color:#f3f3f3">kubectl delete crd <crd listed from above steps> kubectl delete validatingwebhookconfiguration rancher-monitoring-admission</span></span></span>Install the new Monitoring Chart via Rancher UI and make sure all components are installed properly.
通过 Rancher 界面安装新的监控图表,并确保所有组件都正确安装。
Cause 病因
If the previous Monitoring chart Uninstall was not properly carried out, there would be few CRDs remaining. These CRDs and web hooks will stop the next monitoring chart installations.
如果之前的监控图表卸载没有正确执行,剩余的 CRD 将很少。这些 CRD 和网络钩将阻止下一次监控图表的安装。
如果之前的监控图表卸载没有正确执行,剩余的 CRD 将很少。这些 CRD 和网络钩将阻止下一次监控图表的安装。
Additional Information 附加信息
Environment 环境
Rancher 2.x 牧场主 2.x
访问Rancher-K8S解决方案博主,企业合作伙伴 :
https://blog.csdn.net/lidw2009
