Skip to content

Instantly share code, notes, and snippets.

View cmer81's full-sized avatar
😎
( ͡° ͜ʖ ͡°)

Cmer cmer81

😎
( ͡° ͜ʖ ͡°)
View GitHub Profile
@superseb
superseb / restore_rancher2_agents.md
Last active October 10, 2023 06:29
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