fbpx

Spotinst labels allow you to adjust the default behavior of the autoscaler, by adding Spotinst labels to your pods you can control the node termination process or its life cycle.

Available labels:
Label Key Accepted Values Example Description
spotinst.io/restrict-scale-down true {
    “nodeSelector”: {
        “spotinst.io/restrict-scale-down”: “true”
    }
}
When a node is running a pod with such a label, The node will not violently scale down
spotinst.io/pods-contingency true {
    “nodeSelector”: {
        “spotinst.io/pods-contingency”: “true”
    }
}
If a pod is assigned with this label it relays on other running pods in the node. In case that there aren’t running pods in the node (except daemon sets) the pod will be terminated.
spotinst.io/node-lifecycle od {
    “nodeSelector”: {
        “spotinst.io/lifecycle”: “on-demand”
    }
}
Pods which contain this label are forced to run on an on-demand instance