Skip to content

Instantly share code, notes, and snippets.

@superseb
Last active July 4, 2019 09:09
Show Gist options
  • Save superseb/649a64bdbca51e0cba5341d94608ae48 to your computer and use it in GitHub Desktop.
Save superseb/649a64bdbca51e0cba5341d94608ae48 to your computer and use it in GitHub Desktop.
Recover cluster.rkestate using kubeconfig

Recover cluster.rkestate using kubeconfig

Requires kubectl and jq on the node

kubectl -n kube-system get configmap full-cluster-state -o json | jq -r .data.\"full-cluster-state\" | jq -r . > cluster.rkestate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment