Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: Add documentation for nodeSelector support via Maven XML and Groovy DSL #2875

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@ For `Job`, this defaults to `OnFailure`. For others, it's not provided ({cluster
| Configure Controller's compute resource requirements
| `schedule`
| Schedule for _CronJob_ written in https://en.wikipedia.org/wiki/Cron[Cron] syntax.
|===

| `nodeSelector`
| Configuration element for adding nodeSelector to Pod template spec.
|===

[[initcontainer-configuration]]
==== InitContainer {plugin-configuration-type} configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
memory = '64Mi'
}
}
nodeSelector { //<11>
region = 'us-west'
type = 'user-node'
}
}
}
}
Expand All @@ -54,3 +58,4 @@
<8> Mounting an EmptyDir Volume to your application pods
<9> Requests describe the minimum amount of compute resources required. See https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/[Kubernetes Resource Management Documentation] for more info.
<10> Limits describe the maximum amount of compute resources allowed. See https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/[Kubernetes Resource Management Documentation] for more info.
<11> NodeSelector to schedule your application pods on specific nodes based on labels specified in the node. See https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/[Kubernetes NodeSelector] for more details.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
<cpu>500m</cpu>
</limits>
</containerResources>
<nodeSelector> <!--11-->
<region>east</region>
<type>user-node</type>
</nodeSelector>
</controller>
</resources>
</configuration>
Expand All @@ -58,3 +62,4 @@
<8> Mounting an EmptyDir Volume to your application pods
<9> Requests describe the minimum amount of compute resources required. See https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/[Kubernetes Resource Management Documentation] for more info.
<10> Limits describe the maximum amount of compute resources allowed. See https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/[Kubernetes Resource Management Documentation] for more info.
<11> NodeSelector is used to select nodes where the pods should be scheduled based on the labels specified in the node. See https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/[Kubernetes NodeSelector] for more details.