- downloads the image file defined in
koprox.iniasup_image_urlunder the[proxmox]section - installs packages qagent + nfs client into the image
- imports the disk into the
proxstoreproxmox storage usingsudo qm - creates cloudinit drive with user and networking setup
- converts the vm into a template
⚠️ deletes the existing image template- delete the .img file manually ( eg
mantic-minimal-cloudimg-amd64.imgif you want a fresh download/repatch of the upstream image
- prints info about image/template vm eg storage, id, creation time and source cloud image file
- creates and updates a cluster - use this to setup a fresh cluster
- clones the image to
kopsrox-m1master server and configures it via cloudinit - exports kubeconfig and node token
- if an existing working master is found just runs the same steps as
kopsrox cluster update
- checks the state of the cluster vs what is configured in
kopsrox.ini - adds or deletes workers/masters per
kopsrox.ini
- shows a list of ids, hostnames and ips the host they are running on
- shows
kubectl get nodes
- provides a quick and basic way to run some kubectl commands for example:
./kopsrox.py cluster kubectl get events -A
- export the cluster kubeconfig to a
kopsrox.kubeconfigfile - file is patched to have correct master IP vs 127.0.0.1
⚠️ destroys the cluster ( NO WARNING! )- deletes workers then masters in safe order
The first time a snapshot is taken the cluster token is written to clustername.etcd.token
This is not overwriten when further snapshots are taken - even on a new cluster with the same name
./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 snapshot
usage:
./kopsrox.py etcd restore $imagename
-
✅ check you're using the correct
kopsrox.etcd.snapshot.tokenfile for the snapshot! -
downsizes the cluster to 1 node then resizes back to the scale set in
kopsrox.ini
- deletes old snapshots per the retention policy set on the bucket