You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Zili Chen (Jira)" <ji...@apache.org> on 2020/04/07 08:07:00 UTC
[jira] [Closed] (FLINK-16749) Support to set node selector for
JM/TM pod
[ https://issues.apache.org/jira/browse/FLINK-16749?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zili Chen closed FLINK-16749.
-----------------------------
Resolution: Fixed
master(1.11) via 5b54a2580172a7f3c518211c1bfc5f987ebbadba
> Support to set node selector for JM/TM pod
> -------------------------------------------
>
> Key: FLINK-16749
> URL: https://issues.apache.org/jira/browse/FLINK-16749
> Project: Flink
> Issue Type: Sub-task
> Components: Deployment / Kubernetes
> Reporter: Yang Wang
> Assignee: Yang Wang
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.11.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> The [node-selector|https://kubernetes.io/docs/concepts/configuration/assign-pod-node/] is a collection of key/value pairs to constrain a pod to only be able to run on particular node(s). Since affinity and anti-affinity are uncommon use case for Flink, so we leave the support in pod template.
>
> {code:java}
> public static final ConfigOption<Map<String, String>> JOB_MANAGER_NODE_SELECTOR =
> key("kubernetes.jobmanager.node-selector")
> .mapType()
> .noDefaultValue()
> .withDescription("The node selector to be set for JobManager pod. Specified as key:value pairs separated by " +
> "commas. For example, environment:production,disk:ssd.");
> public static final ConfigOption<Map<String, String>> TASK_MANAGER_NODE_SELECTOR =
> key("kubernetes.taskmanager.node-selector")
> .mapType()
> .noDefaultValue()
> .withDescription("The node selector to be set for TaskManager pods. Specified as key:value pairs separated by " +
> "commas. For example, environment:production,disk:ssd.");
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)