You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/04/01 15:11:25 UTC

[GitHub] [flink] wangyang0918 opened a new pull request #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

wangyang0918 opened a new pull request #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606
 
 
   <!--
   *Thank you very much for contributing to Apache Flink - we are happy that you want to help us improve Flink. To help the community review your contribution in the best possible way, please go through the checklist below, which will get the contribution into a shape in which it can be best reviewed.*
   
   *Please understand that we do not do this to make contributions to Flink a hassle. In order to uphold a high standard of quality for code contributions, while at the same time managing a large number of contributions, we need contributors to prepare the contributions well, and give reviewers enough contextual information for the review. Please also understand that contributions that do not follow this guide will take longer to review and thus typically be picked up with lower priority by the community.*
   
   ## Contribution Checklist
   
     - Make sure that the pull request corresponds to a [JIRA issue](https://issues.apache.org/jira/projects/FLINK/issues). Exceptions are made for typos in JavaDoc or documentation files, which need no JIRA issue.
     
     - Name the pull request in the form "[FLINK-XXXX] [component] Title of the pull request", where *FLINK-XXXX* should be replaced by the actual issue number. Skip *component* if you are unsure about which is the best component.
     Typo fixes that have no associated JIRA issue should be named following this pattern: `[hotfix] [docs] Fix typo in event time introduction` or `[hotfix] [javadocs] Expand JavaDoc for PuncuatedWatermarkGenerator`.
   
     - Fill out the template below to describe the changes contributed by the pull request. That will give reviewers the context they need to do the review.
     
     - Make sure that the change passes the automated tests, i.e., `mvn clean verify` passes. You can set up Travis CI to do that following [this guide](https://flink.apache.org/contributing/contribute-code.html#open-a-pull-request).
   
     - Each pull request should address only one issue, not mix up code from multiple issues.
     
     - Each commit in the pull request has a meaningful commit message (including the JIRA id)
   
     - Once all items of the checklist are addressed, remove the above text and this checklist, leaving only the filled out template below.
   
   
   **(The sections below can be removed for hotfixes of typos)**
   -->
   
   ## What is the purpose of the change
   
   The [toleration](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/) is used to separate the K8s cluster into several individual partitions. Usually it it related with business group. So i treat is as a first class feature. Since at least in our production environment, every Flink job need to specify the toleration so that it could be scheduled to the corresponding resource pool.
   
   Moreover, it is sth very like YARN partition.
   
   
   ## Brief change log
   
   * Introduce the config option and set toleration to pod
   
   
   ## Verifying this change
   
   * Covered by unit test
   * Manually test in a real k8s cluster
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): (no)
     - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (no)
     - The serializers: (no)
     - The runtime per-record code paths (performance sensitive): (no)
     - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn/Mesos, ZooKeeper: (yes)
     - The S3 file system connector: (no)
   
   ## Documentation
   
     - Does this pull request introduce a new feature? (yes)
     - If yes, how is the feature documented? (docs)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606#issuecomment-607319028
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/157560663",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=6942",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/159031591",
       "triggerID" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7160",
       "triggerID" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7183",
       "triggerID" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/159205409",
       "triggerID" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f84d47161f3acc856adb5db49c40fc480b3f3166",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7386",
       "triggerID" : "f84d47161f3acc856adb5db49c40fc480b3f3166",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f84d47161f3acc856adb5db49c40fc480b3f3166",
       "status" : "SUCCESS",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/160020437",
       "triggerID" : "f84d47161f3acc856adb5db49c40fc480b3f3166",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * f84d47161f3acc856adb5db49c40fc480b3f3166 Travis: [SUCCESS](https://travis-ci.com/github/flink-ci/flink/builds/160020437) Azure: [PENDING](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7386) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606#issuecomment-607319028
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "PENDING",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/157560663",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=6942",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc Travis: [PENDING](https://travis-ci.com/github/flink-ci/flink/builds/157560663) Azure: [FAILURE](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=6942) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606#issuecomment-607319028
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/157560663",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=6942",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/159031591",
       "triggerID" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7160",
       "triggerID" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7183",
       "triggerID" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "status" : "SUCCESS",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/159205409",
       "triggerID" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f84d47161f3acc856adb5db49c40fc480b3f3166",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "f84d47161f3acc856adb5db49c40fc480b3f3166",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 80f0b20a896d00ce168ee5be49398d6969614d9a Travis: [SUCCESS](https://travis-ci.com/github/flink-ci/flink/builds/159205409) Azure: [SUCCESS](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7183) 
   * f84d47161f3acc856adb5db49c40fc480b3f3166 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606#issuecomment-607319028
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/157560663",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=6942",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/159031591",
       "triggerID" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7160",
       "triggerID" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7183",
       "triggerID" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "status" : "SUCCESS",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/159205409",
       "triggerID" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 80f0b20a896d00ce168ee5be49398d6969614d9a Travis: [SUCCESS](https://travis-ci.com/github/flink-ci/flink/builds/159205409) Azure: [SUCCESS](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7183) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606#issuecomment-607319028
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "SUCCESS",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/157560663",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=6942",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "status" : "PENDING",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/159031591",
       "triggerID" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7160",
       "triggerID" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc Travis: [SUCCESS](https://travis-ci.com/github/flink-ci/flink/builds/157560663) Azure: [FAILURE](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=6942) 
   * 491f1ef1d84550bb97c08a0865fb0d53f8f43b9c Travis: [PENDING](https://travis-ci.com/github/flink-ci/flink/builds/159031591) Azure: [PENDING](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7160) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606#issuecomment-607319028
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "SUCCESS",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/157560663",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=6942",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc Travis: [SUCCESS](https://travis-ci.com/github/flink-ci/flink/builds/157560663) Azure: [FAILURE](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=6942) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606#issuecomment-607319028
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/157560663",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=6942",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "status" : "FAILURE",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/159031591",
       "triggerID" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7160",
       "triggerID" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 491f1ef1d84550bb97c08a0865fb0d53f8f43b9c Travis: [FAILURE](https://travis-ci.com/github/flink-ci/flink/builds/159031591) Azure: [SUCCESS](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7160) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot commented on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
flinkbot commented on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606#issuecomment-607319028
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] TisonKun commented on a change in pull request #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
TisonKun commented on a change in pull request #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606#discussion_r407333211
 
 

 ##########
 File path: flink-kubernetes/src/main/java/org/apache/flink/kubernetes/configuration/KubernetesConfigOptions.java
 ##########
 @@ -186,6 +186,24 @@
 		.withDescription("The user-specified annotations that are set to the TaskManager pod. The value could be " +
 			"in the form of a1:v1,a2:v2");
 
+	public static final ConfigOption<List<Map<String, String>>> JOB_MANAGER_TOLERATIONS =
+		key("kubernetes.jobmanager.tolerations")
+			.mapType()
+			.asList()
+			.noDefaultValue()
+			.withDescription("The user-specified tolerations to be set to the JobManager pod. The value could be " +
+				"in the form of key:key1,operator:Equal,value:value1,effect:NoSchedule;" +
+				"key:key2,operator:Exists,effect:NoExecute,tolerationSeconds:6000");
+
+	public static final ConfigOption<List<Map<String, String>>> TASK_MANAGER_TOLERATIONS =
+		key("kubernetes.taskmanager.tolerations")
+			.mapType()
+			.asList()
+			.noDefaultValue()
+			.withDescription("The user-specified tolerations to be set to the TaskManager pod. The value could be " +
 
 Review comment:
   ```suggestion
   			.withDescription("The user-specified tolerations to be set to the TaskManager pod. The value should be " +
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] wangyang0918 commented on a change in pull request #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
wangyang0918 commented on a change in pull request #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606#discussion_r407348177
 
 

 ##########
 File path: flink-kubernetes/src/main/java/org/apache/flink/kubernetes/configuration/KubernetesConfigOptions.java
 ##########
 @@ -186,6 +186,24 @@
 		.withDescription("The user-specified annotations that are set to the TaskManager pod. The value could be " +
 			"in the form of a1:v1,a2:v2");
 
+	public static final ConfigOption<List<Map<String, String>>> JOB_MANAGER_TOLERATIONS =
+		key("kubernetes.jobmanager.tolerations")
+			.mapType()
+			.asList()
+			.noDefaultValue()
+			.withDescription("The user-specified tolerations to be set to the JobManager pod. The value could be " +
 
 Review comment:
   Make sense. I will fix it.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] TisonKun commented on a change in pull request #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
TisonKun commented on a change in pull request #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606#discussion_r407333171
 
 

 ##########
 File path: flink-kubernetes/src/main/java/org/apache/flink/kubernetes/configuration/KubernetesConfigOptions.java
 ##########
 @@ -186,6 +186,24 @@
 		.withDescription("The user-specified annotations that are set to the TaskManager pod. The value could be " +
 			"in the form of a1:v1,a2:v2");
 
+	public static final ConfigOption<List<Map<String, String>>> JOB_MANAGER_TOLERATIONS =
+		key("kubernetes.jobmanager.tolerations")
+			.mapType()
+			.asList()
+			.noDefaultValue()
+			.withDescription("The user-specified tolerations to be set to the JobManager pod. The value could be " +
 
 Review comment:
   ```suggestion
   			.withDescription("The user-specified tolerations to be set to the JobManager pod. The value should be " +
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606#issuecomment-607319028
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/157560663",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=6942",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/159031591",
       "triggerID" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7160",
       "triggerID" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7183",
       "triggerID" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "status" : "SUCCESS",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/159205409",
       "triggerID" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f84d47161f3acc856adb5db49c40fc480b3f3166",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7386",
       "triggerID" : "f84d47161f3acc856adb5db49c40fc480b3f3166",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f84d47161f3acc856adb5db49c40fc480b3f3166",
       "status" : "PENDING",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/160020437",
       "triggerID" : "f84d47161f3acc856adb5db49c40fc480b3f3166",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 80f0b20a896d00ce168ee5be49398d6969614d9a Travis: [SUCCESS](https://travis-ci.com/github/flink-ci/flink/builds/159205409) Azure: [SUCCESS](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7183) 
   * f84d47161f3acc856adb5db49c40fc480b3f3166 Travis: [PENDING](https://travis-ci.com/github/flink-ci/flink/builds/160020437) Azure: [PENDING](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7386) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] wangyang0918 edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
wangyang0918 edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606#issuecomment-610799914
 
 
   @TisonKun Do you mind to also take a look and help with merging? I think the changes in this PR is quite straightforward.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] zhengcanbin commented on a change in pull request #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
zhengcanbin commented on a change in pull request #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606#discussion_r403974873
 
 

 ##########
 File path: flink-kubernetes/src/main/java/org/apache/flink/kubernetes/kubeclient/resources/KubernetesToleration.java
 ##########
 @@ -0,0 +1,65 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.flink.kubernetes.kubeclient.resources;
+
+import io.fabric8.kubernetes.api.model.Toleration;
+import io.fabric8.kubernetes.api.model.TolerationBuilder;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.util.Map;
+
+/**
+ * Represent Toleration resource in kubernetes.
+ */
+public class KubernetesToleration extends KubernetesResource<Toleration> {
+
+	private static final Logger LOG = LoggerFactory.getLogger(KubernetesToleration.class);
+
+	private KubernetesToleration(Toleration toleration) {
+		super(toleration);
+	}
+
+	public static KubernetesToleration fromMap(Map<String, String> stringMap) {
+		final TolerationBuilder tolerationBuilder = new TolerationBuilder();
+		stringMap.forEach((k, v) -> {
 
 Review comment:
   Could the keys be case insensitive?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] zhengcanbin commented on a change in pull request #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
zhengcanbin commented on a change in pull request #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606#discussion_r403975682
 
 

 ##########
 File path: flink-kubernetes/src/main/java/org/apache/flink/kubernetes/kubeclient/parameters/KubernetesParameters.java
 ##########
 @@ -62,6 +63,12 @@
 	 */
 	Map<String, String> getAnnotations();
 
+	/**
+	 * A collection of tolerations that are set to the JobManager and TaskManager Pod(s). Kubernetes Taints and
 
 Review comment:
   nit: should be taints?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot commented on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
flinkbot commented on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606#issuecomment-607309819
 
 
   Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community
   to review your pull request. We will use this comment to track the progress of the review.
   
   
   ## Automated Checks
   Last check on commit f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc (Wed Apr 01 15:15:00 UTC 2020)
   
   **Warnings:**
    * No documentation files were touched! Remember to keep the Flink docs up to date!
   
   
   <sub>Mention the bot in a comment to re-run the automated checks.</sub>
   ## Review Progress
   
   * ❓ 1. The [description] looks good.
   * ❓ 2. There is [consensus] that the contribution should go into to Flink.
   * ❓ 3. Needs [attention] from.
   * ❓ 4. The change fits into the overall [architecture].
   * ❓ 5. Overall code [quality] is good.
   
   Please see the [Pull Request Review Guide](https://flink.apache.org/contributing/reviewing-prs.html) for a full explanation of the review process.<details>
    The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot approve description` to approve one or more aspects (aspects: `description`, `consensus`, `architecture` and `quality`)
    - `@flinkbot approve all` to approve all aspects
    - `@flinkbot approve-until architecture` to approve everything until `architecture`
    - `@flinkbot attention @username1 [@username2 ..]` to require somebody's attention
    - `@flinkbot disapprove architecture` to remove an approval you gave earlier
   </details>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606#issuecomment-607319028
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/157560663",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=6942",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "status" : "FAILURE",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/159031591",
       "triggerID" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7160",
       "triggerID" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7183",
       "triggerID" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "status" : "PENDING",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/159205409",
       "triggerID" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 491f1ef1d84550bb97c08a0865fb0d53f8f43b9c Travis: [FAILURE](https://travis-ci.com/github/flink-ci/flink/builds/159031591) Azure: [SUCCESS](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7160) 
   * 80f0b20a896d00ce168ee5be49398d6969614d9a Travis: [PENDING](https://travis-ci.com/github/flink-ci/flink/builds/159205409) Azure: [PENDING](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7183) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606#issuecomment-607319028
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/157560663",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=6942",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/159031591",
       "triggerID" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7160",
       "triggerID" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7183",
       "triggerID" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/159205409",
       "triggerID" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f84d47161f3acc856adb5db49c40fc480b3f3166",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7386",
       "triggerID" : "f84d47161f3acc856adb5db49c40fc480b3f3166",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f84d47161f3acc856adb5db49c40fc480b3f3166",
       "status" : "SUCCESS",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/160020437",
       "triggerID" : "f84d47161f3acc856adb5db49c40fc480b3f3166",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * f84d47161f3acc856adb5db49c40fc480b3f3166 Travis: [SUCCESS](https://travis-ci.com/github/flink-ci/flink/builds/160020437) Azure: [SUCCESS](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7386) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606#issuecomment-607319028
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/157560663",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=6942",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/159031591",
       "triggerID" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7160",
       "triggerID" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7183",
       "triggerID" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "status" : "SUCCESS",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/159205409",
       "triggerID" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 80f0b20a896d00ce168ee5be49398d6969614d9a Travis: [SUCCESS](https://travis-ci.com/github/flink-ci/flink/builds/159205409) Azure: [PENDING](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7183) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] TisonKun closed pull request #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
TisonKun closed pull request #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] wangyang0918 commented on a change in pull request #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
wangyang0918 commented on a change in pull request #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606#discussion_r404741792
 
 

 ##########
 File path: flink-kubernetes/src/main/java/org/apache/flink/kubernetes/kubeclient/parameters/KubernetesParameters.java
 ##########
 @@ -62,6 +63,12 @@
 	 */
 	Map<String, String> getAnnotations();
 
+	/**
+	 * A collection of tolerations that are set to the JobManager and TaskManager Pod(s). Kubernetes Taints and
 
 Review comment:
   I will fix it.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606#issuecomment-607319028
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "PENDING",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/157560663",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=6942",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc Travis: [PENDING](https://travis-ci.com/github/flink-ci/flink/builds/157560663) Azure: [PENDING](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=6942) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] wangyang0918 commented on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
wangyang0918 commented on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606#issuecomment-607795213
 
 
   @TisonKun @zhengcanbin Do you mind to take a look at your convenience?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] wangyang0918 commented on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
wangyang0918 commented on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606#issuecomment-612783189
 
 
   @TisonKun Thanks for your review. I have integrated your comments and force pushed the PR. Please have another look.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606#issuecomment-607319028
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "SUCCESS",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/157560663",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=6942",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc Travis: [SUCCESS](https://travis-ci.com/github/flink-ci/flink/builds/157560663) Azure: [FAILURE](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=6942) 
   * 491f1ef1d84550bb97c08a0865fb0d53f8f43b9c UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606#issuecomment-607319028
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/157560663",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=6942",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "status" : "FAILURE",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/159031591",
       "triggerID" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7160",
       "triggerID" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 491f1ef1d84550bb97c08a0865fb0d53f8f43b9c Travis: [FAILURE](https://travis-ci.com/github/flink-ci/flink/builds/159031591) Azure: [PENDING](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7160) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] wangyang0918 commented on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
wangyang0918 commented on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606#issuecomment-610366485
 
 
   @zhengcanbin I have integrated your suggestions and rebased the latest master. Please take another look at your convenience.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] wangyang0918 commented on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
wangyang0918 commented on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606#issuecomment-610799914
 
 
   @TisonKun Do you mind to also take a look? I think the changes in this PR is quite straightforward.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606#issuecomment-607319028
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/157560663",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=6942",
       "triggerID" : "f95d4be137811c3d9daf8fbb4a9b1fbbb5553dcc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "status" : "FAILURE",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/159031591",
       "triggerID" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7160",
       "triggerID" : "491f1ef1d84550bb97c08a0865fb0d53f8f43b9c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "80f0b20a896d00ce168ee5be49398d6969614d9a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 491f1ef1d84550bb97c08a0865fb0d53f8f43b9c Travis: [FAILURE](https://travis-ci.com/github/flink-ci/flink/builds/159031591) Azure: [SUCCESS](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7160) 
   * 80f0b20a896d00ce168ee5be49398d6969614d9a UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] wangyang0918 commented on a change in pull request #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod

Posted by GitBox <gi...@apache.org>.
wangyang0918 commented on a change in pull request #11606: [FLINK-15639][k8s] Support to set tolerations for jobmanager and taskmanger pod
URL: https://github.com/apache/flink/pull/11606#discussion_r404744138
 
 

 ##########
 File path: flink-kubernetes/src/main/java/org/apache/flink/kubernetes/kubeclient/resources/KubernetesToleration.java
 ##########
 @@ -0,0 +1,65 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.flink.kubernetes.kubeclient.resources;
+
+import io.fabric8.kubernetes.api.model.Toleration;
+import io.fabric8.kubernetes.api.model.TolerationBuilder;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.util.Map;
+
+/**
+ * Represent Toleration resource in kubernetes.
+ */
+public class KubernetesToleration extends KubernetesResource<Toleration> {
+
+	private static final Logger LOG = LoggerFactory.getLogger(KubernetesToleration.class);
+
+	private KubernetesToleration(Toleration toleration) {
+		super(toleration);
+	}
+
+	public static KubernetesToleration fromMap(Map<String, String> stringMap) {
+		final TolerationBuilder tolerationBuilder = new TolerationBuilder();
+		stringMap.forEach((k, v) -> {
 
 Review comment:
   Thanks for your suggestion. I think it makes sense to ignore character case here.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services