k8s-spot-rescheduler
A k8s-spot-rescheduler Helm chart for Kubernetes
About this chart
Kubernetes AWS EC2 Spot Rescheduler
This chart installs the k8s-spot-rescheduler.
Purpose
Spot rescheduler will reschedule pods that are already running on on-demand instances. Based on worker labels it will move pods to spot instances. It can work together with Cluster Autoscaler if you want to scale on-demand instances back to zero.
Installation
You should install this chart into the kube-system namespace:
helm install \
--namespace kube-system \
<helm-repo>/k8s-spot-rescheduler
helm install \
If your cluster has RBAC enabled, run this command:
helm install \
--namespace kube-system \
--set rbac.create=true \
helm install \
stable/k8s-spot-rescheduler
Configuration
Add the parameters to cmdOptions which you want to use. Here is the full list of available options.
Deploy k8s-spot-rescheduler with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has k8s-spot-rescheduler on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartk8s-spot-rescheduler is pinned at v0.4.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply