spot-scheduler

by Helm

Helm chartv0.1.2App 1.0

An extended Kubernetes scheduler that is able to schedule pods based on spot-instance related attributes

About this chart

Spot scheduler

This chart will install BanzaiCloud's spot-affinity scheduler, a fork of the default Kubernetes scheduler, that is able to schedule a set percent of replicas of a Kubernetes deployment to on-demand AWS instances.

Installing the Chart

$ helm repo add banzaicloud-stable http://kubernetes-charts.banzaicloud.com/branch/master
$ helm repo update
$ helm install --name <name> banzaicloud-stable/spot-scheduler

Configuration

The following tables lists configurable parameters of the anchore-policy-validator chart and their default values.

ParameterDescriptionDefault
replicaCountnumber of replicas1
image.repositoryimage repo that contains the schedulerbanzaicloud/spot-scheduler
image.tagimage tag1.10.3
image.pullPolicyimage pull policyIfNotPresent
extraArgsmap of extra args to add to the schedulerfeature-gates: PersistentLocalVolumes=false,VolumeScheduling=false
resourcesresources to request{}
nodeSelectornode selector to use{}
tolerationstolerations to add[]
affinityaffinities to use{}
rbac.enabledRBACtrue
rbac.psp.enabledPSP enabledfalse

Deploy spot-scheduler with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has spot-scheduler 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartspot-scheduler is pinned at v0.1.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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