This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Backup | |
- Create a volume and attach to control plane instance (for example, attached to /dev/vdb) | |
- Login to instance and: | |
fdisk /dev/vdb | |
n | |
p | |
<enter> 3x | |
w | |
mkfs.ext4 /dev/vdb1 | |
mkdir /mnt/backup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sometimes when you delete a cluster from Rancher, it still appears in the Home dashboard and also on the left menu. | |
This is not only cosmetic, but if you try to import a new cluster under the same name, it does not work. | |
To definitely remove it, login to Rancher cluster and type the following: | |
kubectl get clusters.management.cattle.io # find the cluster you want to delete | |
kubectl describe clusters.management.cattle.io <cluster-id from previous command> # Find the Display name for the cluster and confirm it is the one you want | |
export CLUSTERID="c-xxxxxxxxx" | |
kubectl patch clusters.management.cattle.io $CLUSTERID -p '{"metadata":{"finalizers":[]}}' --type=merge | |
kubectl delete clusters.management.cattle.io $CLUSTERID |