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 style="color:#000000"><span style="background-color:#ffffff"><span style="background-color:#f3f3f3">Error message while creating a new RKE cluster from the new RKE Template: Unable to validate S3 backup target configuration: Get <a>Configuration: 配置:<span style="color:#000000"><span style="background-color:#ffffff"><span style="background-color:#f3f3f3">E.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></span>
Resolution 结局
Verify if the RKE Template has configurable questions:
确认 RKE 模板是否有可配置的问题:
确认 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.
为新模板设置一个名称,然后点击保存。如果这是你的默认模板,选择新创建的模板并将其设置为默认模板。
- Go to Cluster Management => RKE1 Configuration => RKE Templates
Cause 病因
Configurable questions on the RKE template would require the end-user to answer those questions to set up a new RKE cluster and won't allow a new RKE cluster to be deployed automatically.
RKE 模板上的可配置问题要求终端用户回答这些问题以建立新的 RKE 集群,且不允许自动部署新的 RKE 集群。
RKE 模板上的可配置问题要求终端用户回答这些问题以建立新的 RKE 集群,且不允许自动部署新的 RKE 集群。
Additional Information 附加信息
Environment 环境
- Suse Rancher 2.9 or higher version
Suse Rancher 2.9 或更高版本 - Air-gapped environment 空气隔断环境
- 1 or more RKE downstream clusters
1 个或多个 RKE 下游集群 - RKE template configured for the downstream clusters
为下游集群配置的 RKE 模板
访问Rancher-K8S解决方案博主,企业合作伙伴 :
https://blog.csdn.net/lidw2009
