You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-zh@flink.apache.org by hjw <18...@163.com> on 2022/11/27 17:12:20 UTC

Flink Kubernetes Operator何时会保留JobManager

环境:
Flink:1.15
Operator: 1.2.0


问题:
注意到Operator源码里execution.shutdown-on-application-finish参数被设置为False。
想请问Flink operator部署的Flink作业在何时会保留JobManager的pod?因为我想在作业失败或者停止后还能获取到作业的日志。


除了正常Running状态会保留外,我尝试了其他情况。
1、作业State设置为suspended:保留对应的FlinkDeployment资源类型,但作业相关的Deployment和service全部删除,包括JobManager所在pod。
2、直接执行kubectl delete flinkdeployment my-deployment。作业的所有关联资源全被删除,包括HA资源,状态存储信息,Deployment等。











--

Best,
Hjw