Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
The clusterClient is built as below. The config is mixed up with the FlinkDeploymentSpec and local default config.
final int port = config.getInteger(RestOptions.PORT); final String host = config.getString( RestOptions.ADDRESS, String.format("%s-rest.%s", clusterId, namespace)); final String restServerAddress = String.format("http://%s:%s", host, port);
But the RestOptions.ADDRESS is generated at the entrypoint when the HA is enabled, so the option can not obtain from the FlinkDeploymentSpec.
Furthermore, the default rest url is not suitable for all the service type. I think we should extract the rest endpoint from the Flink external service.
Attachments
Issue Links
- links to