spot-config-webhook

by Helm

Helm chartv0.1.6App 0.1.3

A Helm chart that deploys a mutating admission webhook that configures an alternative scheduler for specific pods

About this chart

Spot config webhook

This chart will install a mutating admission webhook, that annotates pods in a deployment with a specific annotation that works with BanzaiCloud's spot-scheduler. Pods are annotated based on a specific configmap that's updated by Pipeline. The webhook also sets "spot-scheduler" as schedulerName for these pods.

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-config-webhook

Configuration

The following tables lists configurable parameters of the spot-config-webhook chart and their default values.

ParameterDescriptionDefault
replicaCountnumber of replicas1
logVerbositylog verbosity level8
apiService.groupgroup of registered api serviceadmission.banzaicloud.com
apiService.versionversion of registered api servicev1beta1
apiService.resourceapi service endpoint where hook is availablespotscheduling
image.repositoryimage repo that contains the admission serverbanzaicloud/spot-config-webhook
image.tagimage tag0.1.0
image.pullPolicyimage pull policyIfNotPresent
service.namespot config webhook service namespotwebhook
service.typespot config webhook service typeClusterIP
service.externalPortspot config webhook service external port443
service.internalPortspot config webhook service external port443
webhook.spotAnnotationKeyannotation key of on-demand percentageapp.banzaicloud.io/odPercentage
webhook.configMapNamespacenamespace of configMap that holds spot infopipeline-system
webhook.configMapNamename of configMap that holds spot infospot-deploy-config
webhook.schedulerNamename of spot-affinity schedulerspot-scheduler
resourcesresources to request{}
nodeSelectornode selector to use{}
tolerationstolerations to add[]
affinityaffinities to use{}

Deploy spot-config-webhook with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has spot-config-webhook 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-config-webhook is pinned at v0.1.6 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