Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tjhartmann/e34f9877b87e00f3c94186dac453e7c6 to your computer and use it in GitHub Desktop.
Save tjhartmann/e34f9877b87e00f3c94186dac453e7c6 to your computer and use it in GitHub Desktop.
Reconstruct rke state file
kubectl --kubeconfig kube_config_cluster.yml get configmap -n kube-system 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