0.1.3-0.1.0 • Published 5 years ago

@helm-charts/banzaicloud-stable-spot-config-webhook v0.1.3-0.1.0

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

@helm-charts/banzaicloud-stable-spot-config-webhook

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

FieldValue
Repository Namebanzaicloud-stable
Chart Namespot-config-webhook
Chart Version0.1.3
NPM Package Version0.1.0
# Default values for spot-config-webhook.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

replicaCount: 1
logVerbosity: 8

apiService:
  group: admission.banzaicloud.com
  version: v1beta1
  resource: spotscheduling

image:
  repository: banzaicloud/spot-config-webhook
  tag: 0.1.3
  pullPolicy: IfNotPresent

service:
  name: spotwebhook
  type: ClusterIP
  externalPort: 443
  internalPort: 8443

webhook:
  spotAnnotationKey: 'app.banzaicloud.io/odPercentage'
  configMapNamespace: 'pipeline-system'
  configMapName: 'spot-deploy-config'
  schedulerName: 'spot-scheduler'

resources: {}

nodeSelector: {}

tolerations: []

affinity: {}

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{}