spot-recommender

by Helm

Helm chartv0.0.4

A Spot Recommender Helm chart for Kubernetes

About this chart

Hollowtrees Spot Recommender

SpotRecommender Spot instance recommender is a building block of the Hollowtrees project.

tl;dr:

$ helm repo add banzaicloud-incubator http://kubernetes-charts-incubator.banzaicloud.com
$ helm repo update
$ helm install banzaicloud-incubator/spot-recommender

Introduction

This chart bootstraps an AWS spot recommender deployment on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.8+ with Beta APIs enabled

Installing the Chart

To install the chart with the release name my-release:

$ helm install --name my-release banzaicloud-incubator/spot-recommender

The command deploys SpotRecommender on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following tables lists the configurable parameters of the SpotRecommender chart and their default values.

ParameterDescriptionDefault
recommender.nameSpot Recommender container namerecommender
recommender.imageSpot Recommender container imagebanzaicloud/spot-recommender:{VERSION}
recommender.replicaCountReplica Count3
recommender.service.typeKubernetes service type to exposeClusterIP
recommender.service.nodePortPort to bind to for NodePort service typenil
recommender.service.annotationsAdditional annotations to add to servicenil
recommender.imagePullPolicyImage pull policy.IfNotPresent
recommender.logLevelRecommender Log levelinfo
recommender.appPortPort to bind to for Recommender service9090
recommender.cacheInstanceTypesRecommendations are cached for these instance typesm4.xlarge,m5.xlarge,c5.xlarge
recommender.reevaluationIntervalTime (in seconds) between reevaluating the recommendations.1m0s
recommender.regionAWS region where the recommender should work.eu-west-1
recommender.resourcesCPU/Memory resource requests/limitsMemory: 256Mi, CPU: 100m

Specify each parameter using the --set key=value[,key=value] argument to helm install.

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example:

$ helm install --name my-release -f values.yaml banzaicloud-incubator/spot-recommender

Tip: You can use the default values.yaml

Deploy spot-recommender with OpenTenant

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