Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit 9be5592

Browse files
chrisjsilayaperumalg
authored andcommitted
Docs for Kubernetes Toleration support
Resolves #3124
1 parent df49f94 commit 9be5592

File tree

2 files changed

+71
-0
lines changed

2 files changed

+71
-0
lines changed

spring-cloud-dataflow-docs/src/main/asciidoc/configuration-kubernetes.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,10 @@ These properties are also used when configuring the <<configuration-kubernetes-t
197197
|The Spring Boot major version to use. Currently only used to configure Spring Boot version specific probe paths automatically. Valid options are `1` or `2`.
198198
|2
199199

200+
|tolerations
201+
|Toleration configuration to set on created pod's.
202+
|<none>
203+
200204
|===
201205

202206
[[configuration-kubernetes-tasks]]

spring-cloud-dataflow-docs/src/main/asciidoc/getting-started-kubernetes.adoc

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2006,3 +2006,70 @@ Additionally, you can apply multiple labels, as the following example shows:
20062006
deployer.<app>.kubernetes.deploymentLabels=myLabelName:myLabelValue,myLabelName2:myLabelValue2
20072007
----
20082008
====
2009+
2010+
==== Tolerations
2011+
2012+
Tolerations work with taints to ensure pods are not scheduled onto particular nodes.
2013+
Tolerations are set into the pod configuration while taints are set onto nodes.
2014+
Refer to the https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/[Taints and Tolerations] section of the Kubernetes reference for more information.
2015+
2016+
The following example shows how you can individually configure applications:
2017+
2018+
====
2019+
[source,options=nowrap]
2020+
----
2021+
deployer.<app>.kubernetes.tolerations=[{key: 'mykey' operator: 'Equal', value: 'myvalue', effect: 'NoSchedule'}]
2022+
----
2023+
====
2024+
2025+
Replace `<app>` with the name of your application and the key / value pairs according to your desired toleration configuration.
2026+
2027+
You can configure tolerations at the global server level as well.
2028+
2029+
The following example shows how to do so for streams:
2030+
2031+
====
2032+
[source,yaml]
2033+
----
2034+
data:
2035+
application.yaml: |-
2036+
spring:
2037+
cloud:
2038+
skipper:
2039+
server:
2040+
platform:
2041+
kubernetes:
2042+
accounts:
2043+
default:
2044+
tolerations:
2045+
- key: mykey
2046+
operator: Equal
2047+
value: myvalue
2048+
effect: NoSchedule
2049+
----
2050+
====
2051+
2052+
The following example shows how to do so for tasks:
2053+
2054+
====
2055+
[source,yaml]
2056+
----
2057+
data:
2058+
application.yaml: |-
2059+
spring:
2060+
cloud:
2061+
dataflow:
2062+
task:
2063+
platform:
2064+
kubernetes:
2065+
accounts:
2066+
default:
2067+
tolerations:
2068+
- key: mykey
2069+
operator: Equal
2070+
value: myvalue
2071+
effect: NoSchedule
2072+
----
2073+
====
2074+
2075+
Replacing the `tolerations` key / value pairs according to your desired toleration configuration.

0 commit comments

Comments
 (0)