aks-spot-instance-tolerator

command module
v0.0.0-...-a621a00 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 9 Imported by: 0

README

aks-spot-instance-tolerator

This tool allows the execution of most workloads on aks (Azure Kubernetes Service) spot instances. This is useful if your aks cluster only consists of interruptable workloads.

With spot instances you can save up to 88% of compute cost over on demand instances in AKS. With aks-spot-instance-tolerator it is actually easy to deploy workloads on spot instances.

The Problem

For a pod to be allowed to run on a spot instance node in aks, the pod needs to have the toleration kubernetes.azure.com/scalesetpriority=spot:NoSchedule or it will not be deployed on that node. To manually add this toleration to every Deployment, Statefulset, Job and pod (spawned through other means) is cumbersome and in some instances impossible.

The Solutions

The aks-spot-instance-tolerator automatically adds this toleration to every pod that is applied to the cluster, regardless of its origin.

How to install

The aks-spot-instance-tolerator can be installed through helm.

  1. run helm repo add stein.solutions https://stein-solutions.github.io/helm-charts/
  2. run helm upgrade --install <release-name> stein.solutions/aks-spot-instance-tolerator

How to release a new version

After changes have been made to the software, the helm chart version should be incremented. To release a new version, we tag a commit in the main branch with a tag starting with release. E.g.:

git tag release-2024-10-2-00001 -m "release 1.0.0"

Afterwards the github action build the code, creates the image and releases the helm chart.

stein.solutions

You are aiming to save costs of your kubernetes clusters? You are looking for a strong partner to build your companies cloud platform? Get in touch: stein.solutions

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL