rancher 2.6.3 webhook
时间: 2023-09-13 17:08:52 浏览: 260
webhook
Rancher 2.6.3中的webhook功能是指rancher-webhook deployments在到期前30天或更短的时间内会自动更新其TLS证书。这意味着在2.6.3版本及更高版本中,你不需要手动更新webhook证书,系统会自动处理证书的续签。在旧版本的Rancher中,比如2.6.2及以下版本,你需要手动更新webhook证书,并按照以下步骤进行操作:
1. 删除旧的证书和mutatingwebhookconfigurations:
- 运行命令: `kubectl delete secret -n cattle-system cattle-webhook-tls`
- 运行命令: `kubectl delete mutatingwebhookconfigurations.admissionregistration.k8s.io --ignore-not-found=true rancher.cattle.io`
2. 删除rancher-webhook的Pod:
- 运行命令: `kubectl delete pod -n cattle-system -l app=rancher-webhook`
这样,你就完成了更新rancher-webhook证书的步骤。请注意,在Rancher 2.6.3及更高版本中,这些步骤是不需要的,因为TLS证书会自动更新。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [Rancher2.6.2证书更新--有坑需要注意](https://blog.csdn.net/laijianzong/article/details/130012981)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文