Provides a CLI and programmatic interface to Spot by NetApp Ocean API once an AKS cluster upgrade was performed in the AKS clusters which managed by Spot Ocean.
In order to run, There is a programmatic CLI with the name of init.sh, and may run with the next command:
./init.sh
The next usage screen will be on the stdout:
[-i, --ids]: If present, list the required virtual node group(s) to roll (vng-xxxxxxxx,...)
[-p, --percentage]: If present, list the required percentage you want to roll the cluster. Integer 0-100
[-d, --default]: If present, will roll with the default cluster roll (all cluster will be rolled, 20% per batch) - accepts true/1 in order to run.
- In order to deploy cluster with all VNGs, and 30% of the cluster will be rolled on each batch, run
./init.sh -i ALL -p 30
- In order to deploy specific VNG, with 20% of the VNG on each batch, run
./init.sh -i "vng-xxxxxxxx" -p 20
The script will apply a k8s job, called ocean-aks-cluster-upgrade, which consists of two containers.
This container will execute a script that will will read information from one of the Kubernetes nodes and then create an Ocean metadata that matches the configuration. On AKS cluster upgrades, the metadata of the nodes in the cluster may change.
This container will read the secrets of spot and will roll the cluster according the configuration that provided in the bootstrap script.