[
https://issues.apache.org/jira/browse/FLINK-8304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16401026#comment-16401026
]
Ufuk Celebi commented on FLINK-8304:
------------------------------------
I think your understanding is correct (although the terminology is slightly
off, not the Kubernetes master will restart a failed Pod, but the corresponding
Deployment). In general, there is no fundamental difference to HA with YARN.
By default, Flink in HA mode will pick a random port for JobManager RPC before
registering the JobManager address (as configured in
{{jobmanager.rpc.address}}) at ZooKeeper. Typically, you have a Kubernetes
Service in front of your JobManager Deployment/Pod (in order to get a fixed
IP/hostname despite potential Pod restarts) which only exposes a fixed set of
ports. Therefore, you need to configure a fixed port for HA as well via the key
I've mentioned above ({{high-availability.jobmanager.port}}).
(I think there are plans to consolidate this config option with the already
existing regular {{jobmanager.rpc.port}}.)
> Document Kubernetes and Flink HA setup
> --------------------------------------
>
> Key: FLINK-8304
> URL: https://issues.apache.org/jira/browse/FLINK-8304
> Project: Flink
> Issue Type: Improvement
> Components: Documentation
> Reporter: Ufuk Celebi
> Priority: Major
>
> Currently the Flink on Kubernetes documentation does not mention anything
> about running Flink in HA mode.
> We should add at least the following two things:
> - Currently, there cannot be a standby JobManager pod due to the way Flink HA
> works
> - `high-availability.jobmanager.port` has to be set to a port that is exposed
> via Kubernetes
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)