From b282c059b8265ab9d0dbbf4c318ae576bd90d401 Mon Sep 17 00:00:00 2001 From: Billy Tat Date: Tue, 15 Jun 2021 09:00:06 -0700 Subject: [PATCH] Fix example command --- .../v2.5/en/installation/resources/update-ca-cert/_index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/rancher/v2.5/en/installation/resources/update-ca-cert/_index.md b/content/rancher/v2.5/en/installation/resources/update-ca-cert/_index.md index 93e428a3a54..99bfdce3fb7 100644 --- a/content/rancher/v2.5/en/installation/resources/update-ca-cert/_index.md +++ b/content/rancher/v2.5/en/installation/resources/update-ca-cert/_index.md @@ -113,7 +113,7 @@ Method 3 can be used as a fallback if method 1 and 2 are unfeasible. For each cluster under Rancher management (including `local`) run the following command using the Kubeconfig file of the Rancher management cluster (RKE or K3S). ``` -kubectl patch clusters -p '{"status":{"agentImage":"dummy"}}' --type merge +kubectl patch clusters.management.cattle.io -p '{"status":{"agentImage":"dummy"}}' --type merge ``` This command will cause all Agent Kubernetes resources to be reconfigured with the checksum of the new certificate. @@ -142,4 +142,4 @@ With this method you are recreating the Rancher agents by running a set of comma First, generate the agent definitions as described here: https://gist.github.com/superseb/076f20146e012f1d4e289f5bd1bd4971 Then, connect to a controlplane node of the downstream cluster via SSH, create a Kubeconfig and apply the definitions: -https://gist.github.com/superseb/b14ed3b5535f621ad3d2aa6a4cd6443b \ No newline at end of file +https://gist.github.com/superseb/b14ed3b5535f621ad3d2aa6a4cd6443b