[FLINK-11787] Update Kubernetes resources: workaround to make TM reachable from JM in Kubernetes#7858
[FLINK-11787] Update Kubernetes resources: workaround to make TM reachable from JM in Kubernetes#78581u0 wants to merge 1 commit intoapache:release-1.7from
Conversation
|
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. DetailsBot commandsThe @flinkbot bot supports the following commands:
|
|
Thanks for opening this PR @1u0. I think we should create a separate issue for this workaround since this PR does not solve FLINK-11127 which has the goal to reverse the connection pattern of the |
|
@tillrohrmann thanks for comment. Regarding this PR, should I close it and reopen a new one (under the new ticket) OR just update it and re-link (to the new ticket)? |
…hable from JM in Kubernetes (for Flink 1.7 only)
10277b1 to
4a4fd22
Compare
|
Update: I've changed the PR title and commit message to point to the new [FLINK-11787] ticket. |
tillrohrmann
left a comment
There was a problem hiding this comment.
Thanks for the fix @1u0. LGTM. Merging into release-1.7 branch.
|
@flinkbot approve all |
|
Manually merged. |
…hable from JM in Kubernetes (for Flink 1.7 only) This closes #7858.
|
Hi, thank you for this WA. I downloaded the flink.tgz from You pass 2 args to the docker-entrypoint.sh: args:
- taskmanager
- "-Dtaskmanager.host=$(K8S_POD_IP)"But in docker-entrypoint.sh you did't pass argument Tell me how it will work? |
|
The script needs to be updated to call |
|
If you add docker-entrypoint.sh ...
ARGS=("${@:2}")
...
elif [ "$1" = "taskmanager" ]; then
...
exec $(drop_privs_cmd) "$FLINK_HOME/bin/taskmanager.sh" start-foreground "${ARGS[@]}"
fi |
What is the purpose of the change
1.7release branch. With this change, the TMs should be advertising themselves to JM using their k8s pods' ip addresses instead of (by default) hostnames.NB: this patch is supposed only for Flink
1.7release branch. Flink1.8and higher have introduced a new configuration option to mitigate this (taskmanager.network.bind-policy).Brief change log
Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
@Public(Evolving): (yes / no)Documentation