1) In application mode, the lifecycle of K8s resources(e.g. deployment,
pods, ConfigMaps) is bound with Flink job. So it is
impossible to stop the job and leave the Flink cluster running in
application mode. For K8s session cluster, you could do this.
It will help to save the time for launching a new Flink cluster.

2) Flink have some internal ConfigMaps and volumes, they could not be
overwritten. But I think you could create other arbitrary
ConfigMaps, which contains the encoding secrets. Of cause, you could decode
them in the init-container and create a new
flink-conf.yaml. Then use the following config options to let the
JobManager and TaskManager starting with your generated
flink configuration.

containerized.master.env.FLINK_CONF_DIR=/path/of/your/flink-conf
containerized.taskmanager.env.FLINK_CONF_DIR=/path/of/your/flink-conf


Best,
Yang

Sangarshanan Veeraraghavan <[email protected]> 于2021年10月4日周一
下午2:56写道:

> Hi,
>
> I am currently working shipping flink jobs to production and have two
> general queries/ concerns regarding the deployment that I wanted to list
> down
>
> 1) Currently we deploy jobs on Kubernetes on Application mode and want to
> do a blue-green deployment but Stopping a job with Savepoint terminates the
> deployment rather than suspend/ Finish the Job so that it can be later
> drained or Restarted, Is there any better way to do a safe upgrade for jobs
> running in Application mode on Kubernetes?
>
> 2) The pod-template used in Native deployment currently allows adding of
> new volume and configmaps but is there is a way we can override the
> existing volumes, configmaps used for flink-conf.yaml without depending on
> the cli arguments for more complex usecases like encoding secrets in
> configmaps and decoding them in our init-containers
>
> Thank you
>
> [image: https://grofers.com] <https://grofers.com>

Reply via email to