Install with Helm
For Helm Versions 2.* and Earlier
- Grant Tiller access to create resources in the
kube-system
namespace (see Tiller and Role-based Access Control):
# 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"}}}}
- Proceed with the instructions provided below for newer helm versions.
For Helm Versions 3.0 and Later
- Add Spot'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 Spot Kubernetes cluster controller:
helm install spot-controller spotinst/spotinst-kubernetes-cluster-controller \
--set spotinst.token=[TOKEN] \
--set spotinst.account=[ACCOUNT_ID] \
--set spotinst.clusterIdentifier=[IDENTIFIER]
Tip: Configure all chart values using the
set
command line argument or a values.yaml file.
- In case you want to upgrade the Ocean Controller's version:
helm upgrade spot-controller spotinst/spotinst-kubernetes-cluster-controller \
--reuse-values \
--version <VERSION>
In order to discover the available Ocean Controller versions, use the following command:
helm search spotinst/spotinst-kubernetes-cluster-controller \
--versions