documentation is a WIP 🚧
- downloads the cloud image from the url defined in kopsrox.ini
- installs
qemu-guest-agent
into the image viavirt-customise
- imports the disk into proxmox storage using a
sudo qm
command - creates cloudinit drive with cloudinit data per config
- converts the vm into a template
- an alias for create
- deletes any existing image template
- prints info about image/template vm eg storage, id, creation time and source cloud image file
- size
- creation time
- is it stored on shared storage
- creates and updates a cluster - use this to setup a fresh cluster
- if an existing working master is found it runs the same steps as
kopsrox cluster update
- clones the image to the '-m1' server and configures networking via cloudinit
- exports kubeconfig and node token
- checks the state of the cluster vs what is configured in
kopsrox.ini
- updates the cluster ( eg adding / deleting nodes ) as required
- shows a list of ids, hostnames and ips the host they are running on
- shows
kubectl get nodes
- destroys the cluster ( NO WARNING! )
- deletes workers then masters in safe order
- exports the clusters k3s token
- export the cluster kubeconfig to a file
- file is patched to have correct VIP IP vs 127.0.0.1
- runs k3s check-config and displays the output
- provides a quick and basic way to run some kubectl commands for example:
./kopsrox.py k3s kubectl get events -A
./kopsrox.py etcd snapshot
Takes a backup of etcd
./kopsrox.py etcd list
Should show the new backup
./kopsrox.py etcd list
- lists snapshots taken in s3 storage based on cluster name
restores a cluster from a previously taken s3 snapshot
usage:
./kopsrox.py etcd restore $imagename
- downsizes the cluster to 1 node then resizes back to the scale set in
kopsrox.ini
- restores the cluster from the latest snapshot in the configured s3 storage
- deletes old snapshots per the retention policy set on the bucket
- destroys the passed vm hostname ( NO WARNING )
- creates a spare "utility" node -u1
- connects you to the passed vm's serial console via
qm terminal
- connect via ssh to a kopsrox cluster vm
- uses configured cloudinit user as username
- requires working ssh key configured in config
- reboots the host
- uninstalls k3s using the usual script
- for experimenting with k3s reinstall
- reinstalls kubevip