Spotinst Kubernetes Controller Now Available in Helm

Spotinst Kubernetes controller is used by Spotinst Ocean and Elastigroup autoscale and manage Kubernetes clusters and communicating with Spotinst Cloud platform.

We are happy to announce that now, Spotinst controller installation just got a lot easier and can be completed in just a few short steps, using Helm.

To install Spotinst Controller using Helm follow these steps:

  • Grant Tiller access to create resources in ‘kube-system’ namespace
# Create a ServiceAccount for Tiller
$ kubectl create serviceaccount tiller \
 --namespace=kube-system
 
# Create a ClusterRoleBinding
$ kubectl create clusterrolebinding tiller-cluster-rule \
 --clusterrole=cluster-admin \
 --serviceaccount=kube-system:tiller
 
# Patch Tiller's Deployment to use `tiller` service account
$ kubectl patch deployment tiller-deploy \
 --namespace=kube-system \
 --patch='{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'
  • Add Spotinst’s Helm charts repository:
$ helm repo add spotinst https://spotinst.github.io/spotinst-kubernetes-helm-charts
  • Update information of available charts:
$ helm repo update
  • Install the Spotinst Kubernetes cluster controller:
$ helm install spotinst/spotinst-kubernetes-cluster-controller \
 --set spotinst.token=<TOKEN> \
 --set spotinst.account=<ACCOUNT_ID> \
 --set spotinst.clusterIdentifier=<IDENTIFIER