Skip to content

Instantly share code, notes, and snippets.

View b13n1u's full-sized avatar

b13n1u

  • ebay-kleinanzeigen.de | eBay Inc.
View GitHub Profile
@b13n1u
b13n1u / restore_rancher2_agents.md
Created November 14, 2024 10:09 — forked from superseb/restore_rancher2_agents.md
Restore Rancher 2 cluster/node agents on clusters

Restore Rancher 2 cluster/node agents on clusters

This is an unsupported scenario, see rancher/rancher#14731 when there is an official solution.

When cattle-cluster-agent and/or cattle-node-agent are accidentally deleted, or when server-url/cacerts are changed.

Generate definitions

  • Generate API token in the UI (user -> API & Keys) and save the Bearer token
  • Find the clusterid in the Rancher UI (format is c-xxxxx), its in the address bar when the cluster is selected