diff --git a/docs/common/values/tolerations.md b/docs/common/values/tolerations.md new file mode 100644 index 0000000000..19c62d97ec --- /dev/null +++ b/docs/common/values/tolerations.md @@ -0,0 +1,43 @@ +# Toleration + +## Key: tolerations + +Info: + +- Type: `list` +- Default: `[]` +- Helm Template: + - tolerations.operator: ✅ + - tolerations.key: ✅ + - tolerations.effect: ✅ + - tolerations.value: ✅ + - tolerations.tolerationSeconds: ❌ + +Can be defined in: + +- `.Values`.tolerations +- `.Values.jobs.[job-name].podSpec`.tolerations + +--- + +Defines `tolerations` in Pod. +Allows pod to tolerate taints of a Node. + +Examples: + +```yaml +tolerations: + - operator: Equal # "{{ .Values.some.path }}" + # Required when operator is set to "Equal", otherwise Optional + key: some-key # "{{ .Values.some.path }}" + # Optional + effect: NoExecute # "{{ .Values.some.path }}" + # Dis-allowed when operator is set to "Exists", otherwise optional + value: some-value + # Optional + tolerationSeconds: 10 +``` + +Kubernetes Documentation: + +- [Tolerations](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) diff --git a/library/common/1.0.0/values.yaml b/library/common/1.0.0/values.yaml index e8c9427010..ed3cbfefc4 100644 --- a/library/common/1.0.0/values.yaml +++ b/library/common/1.0.0/values.yaml @@ -72,6 +72,9 @@ dnsPolicy: "" # Defines the DNS Config dnsConfig: {} +# Tolerations +tolerations: [] + # Creates a service account serviceAccount: main: @@ -312,8 +315,6 @@ resources: cpu: 10m memory: 50Mi -tolerations: [] - controller: # -- Enable the controller. enabled: true