Support for specifying K8s YAML for Pod Toleration
DuploCloud supports the customization of many Kubernetes (K8s) YAML operators, such as tolerations. If you are using a Docker container, you can specify the tolerations operator configuration in the Other Container Config field in the container definition in DuploCloud
Specifying Pod Toleration
In the DuploCloud Portal, navigate to Kubernetes -> Services or Docker -> Services. The Services page displays.
Select the Service from the NAME column.
From the Actions menu, select Edit. The Edit Service page displays.
Edit option in Actions menu on Edit Service page
Click Next to proceed to the Advanced Options page.
In the Other Container Config field, add the tolerations operator YAML you have customized for your container.
Other Container Config field in Advanced Options page
Click Update. Your container has been updated with your custom specification for the tolerations operator.
Example Code: tolerations operator YAML
In this example:
If a Pod is running and a taint matching key1 exists on the node, then the Pod will not schedule the node (NoSchedule).
If a Pod is running and a taint matching example-key exists on the node, then the Pod stays bound to the node for 6000 seconds, and then is evicted (NoExecute). If the taint is removed before that time, the Pod will not be evicted.