129. 无法从模板配置新的 RKE 集群:无法验证 S3 备份目标配置

张开发
2026/4/15 7:45:32 15 分钟阅读

分享文章

129. 无法从模板配置新的 RKE 集群:无法验证 S3 备份目标配置
Situation 地理位置The provisioning of an RKE downstream cluster fails after adding extra_args for the kubelet service to a new RKE template and using this newly created template to provision the RKE cluster.在将 kubelet 服务的 extra_args 添加到新的 RKE 模板并使用该新模板配置 RKE 集群后RKE 下游集群的配置失败。Error: 错误span stylecolor:#000000span stylebackground-color:#ffffffspan stylebackground-color:#f3f3f3Error message while creating a new RKE cluster from the new RKE Template: Unable to validate S3 backup target configuration: Get a>Configuration: 配置span stylecolor:#000000span stylebackground-color:#ffffffspan stylebackground-color:#f3f3f3E.g. extra_args for the kubelet added to the RKE Template: kubelet: ... extra_args: ... image-gc-high-threshold: 80 image-gc-low-threshold: 75/span/span/spanResolution 结局Verify if the RKE Template has configurable questions:确认 RKE 模板是否有可配置的问题Check in the RKE Template if there is any setting set as a configurable question for the end-user检查 RKE 模板中是否有设置为最终用户可配置的问题Go to Cluster Management RKE1 Configuration RKE Templates前往集群管理 RKE1 配置 RKE 模板Select your desired RKE Template, and click on the 3-dot menu far on the right menu, select Clone revision选择你想要的 RKE 模板然后点击右侧菜单最远处的三点菜单选择“克隆版本”Go to the Cluster Option Overrides section lower down on the cloned template, and uncheck any available options. After removing these configurable questions, the value set in the template is used without user entry.进入克隆模板下方的“集群选项覆盖”部分取消勾选所有可用选项。移除这些可配置问题后模板中设置的值无需用户输入即可使用。Set a Name for the new Template and click on Save. Select the newly created template and set it as Default Template if this is going to be your default template.为新模板设置一个名称然后点击保存。如果这是你的默认模板选择新创建的模板并将其设置为默认模板。Cause 病因Configurable questions on the RKE template would require the end-user to answer those questions to set up a new RKE cluster and wont allow a new RKE cluster to be deployed automatically.RKE 模板上的可配置问题要求终端用户回答这些问题以建立新的 RKE 集群且不允许自动部署新的 RKE 集群。Additional Information 附加信息Environment 环境Suse Rancher 2.9 or higher versionSuse Rancher 2.9 或更高版本Air-gapped environment 空气隔断环境1 or more RKE downstream clusters1 个或多个 RKE 下游集群RKE template configured for the downstream clusters为下游集群配置的 RKE 模板访问Rancher-K8S解决方案博主企业合作伙伴 https://blog.csdn.net/lidw2009

更多文章