[ 
https://issues.apache.org/jira/browse/FLINK-32205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Weihua Hu updated FLINK-32205:
------------------------------
    Description: 
Currently, Flink Client can only connect to the server through the 
address:port, which is configured by the rest.address and rest.port.

But when running Flink on Kubernetes and exposing services through ingress. The 
URL to access the Flink server should be: http://\{proxy address}/\{some prefix 
path to identify flink clusters}/\{flink real path}

I'd like to introduce an option named "rest.url-prefix" to support adding a 
prefix to URLs in RestClient.

  was:
Currently, Flink Client can only connect to the server via the address:port, 
which is configured by the rest.address and rest.port.

But in some other scenarios. Flink Server is run behind a proxy. Such as 
running on Kubernetes and exposing services through ingress. The URL to access 
the Flink server can be: http://\{proxy address}/\{some prefix path to identify 
flink clusters}/\{flink request path}

In FLINK-32030, the SQL Client gateway accepts URLs by using the '--endpoint'.

IMO, we should introduce an option, such as "rest.url-prefix", to make the 
Flink client work with URLs.


> Support Flink client to access REST API through K8s Ingress
> -----------------------------------------------------------
>
>                 Key: FLINK-32205
>                 URL: https://issues.apache.org/jira/browse/FLINK-32205
>             Project: Flink
>          Issue Type: Improvement
>          Components: Command Line Client
>    Affects Versions: 1.17.0
>            Reporter: Weihua Hu
>            Assignee: Weihua Hu
>            Priority: Major
>
> Currently, Flink Client can only connect to the server through the 
> address:port, which is configured by the rest.address and rest.port.
> But when running Flink on Kubernetes and exposing services through ingress. 
> The URL to access the Flink server should be: http://\{proxy address}/\{some 
> prefix path to identify flink clusters}/\{flink real path}
> I'd like to introduce an option named "rest.url-prefix" to support adding a 
> prefix to URLs in RestClient.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to