spot-config-webhook
by Helm
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.
| Parameter | Description | Default |
|---|---|---|
| replicaCount | number of replicas | 1 |
| logVerbosity | log verbosity level | 8 |
| apiService.group | group of registered api service | admission.banzaicloud.com |
| apiService.version | version of registered api service | v1beta1 |
| apiService.resource | api service endpoint where hook is available | spotscheduling |
| image.repository | image repo that contains the admission server | banzaicloud/spot-config-webhook |
| image.tag | image tag | 0.1.0 |
| image.pullPolicy | image pull policy | IfNotPresent |
| service.name | spot config webhook service name | spotwebhook |
| service.type | spot config webhook service type | ClusterIP |
| service.externalPort | spot config webhook service external port | 443 |
| service.internalPort | spot config webhook service external port | 443 |
| webhook.spotAnnotationKey | annotation key of on-demand percentage | app.banzaicloud.io/odPercentage |
| webhook.configMapNamespace | namespace of configMap that holds spot info | pipeline-system |
| webhook.configMapName | name of configMap that holds spot info | spot-deploy-config |
| webhook.schedulerName | name of spot-affinity scheduler | spot-scheduler |
| resources | resources to request | {} |
| nodeSelector | node selector to use | {} |
| tolerations | tolerations to add | [] |
| affinity | affinities 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartspot-config-webhook is pinned at v0.1.6 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