mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-12-18 10:48:57 +03:00
Refresh and add Apple Silicon (#338)
* Delete CKA stuff. It's covered in CKA repo * Rename nodes * Cluster up again * Update issue template * Update README * Begin rearranging docs * Update links * Initial mac instructions * iterm2 image * update ssh-copy-id to be cross platform * remove vagrant specific * Apple scripts WIP * Add var for architecture * order input files * Apple build working! * auto-locate docs * install sshpass * Set execute bit * apple done! * install sshpass * edits * Corrections * kube version output * Adjustments * Adjustments
This commit is contained in:
33
apple-silicon/delete-virtual-machines.sh
Executable file
33
apple-silicon/delete-virtual-machines.sh
Executable file
@@ -0,0 +1,33 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
specs=/tmp/vm-specs
|
||||
cat <<EOF > $specs
|
||||
controlplane01,2,2048M,10G
|
||||
controlplane02,2,2048M,5G
|
||||
loadbalancer,1,512M,5G
|
||||
node01,2,2048M,5G
|
||||
node02,2,2048M,5G
|
||||
EOF
|
||||
|
||||
for spec in $(cat $specs)
|
||||
do
|
||||
n=$(cut -d ',' -f 1 <<< $spec)
|
||||
multipass stop $n
|
||||
multipass delete $n
|
||||
done
|
||||
|
||||
multipass purge
|
||||
|
||||
echo
|
||||
echo "You should now remove all the following lines from /var/db/dhcpd_leases"
|
||||
echo
|
||||
cat /var/db/dhcpd_leases | egrep -A 5 -B 1 '(controlplane|node|loadbalancer)'
|
||||
echo
|
||||
cat <<EOF
|
||||
Use the following command to do this
|
||||
|
||||
sudo vi /var/db/dhcpd_leases
|
||||
|
||||
EOF
|
||||
Reference in New Issue
Block a user