[ 
https://issues.apache.org/jira/browse/FLINK-41822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18154814#comment-18154814
 ] 

Efrat Levitan commented on FLINK-41822:
---------------------------------------

+1 

Are you planning to make it default?

for https://issues.apache.org/jira/browse/FLINK-41606 I think this should be 
opt-in (as some users may want their data preserved)

OTOH the cluster config map is probably not as useful once the cluster goes away

wdyt?

> Add Owner Reference to Kuberentes HA Configmaps
> -----------------------------------------------
>
>                 Key: FLINK-41822
>                 URL: https://issues.apache.org/jira/browse/FLINK-41822
>             Project: Flink
>          Issue Type: Improvement
>          Components: Deployment / Kubernetes
>    Affects Versions: 2.5.0
>            Reporter: Ahmed Hamdy
>            Priority: Major
>
> h2. Problem
> {{KubernetesLeaderElector}} creates HA configmap, When the JobManager is run 
> as a {{Deployment}} or {{StatefulSet}} these configmaps can not be cleaned up 
> as cluster shutdown only issues a container restart and recreates the HA 
> configmap, Labels were added in FLINK-34286 to clean the configmap up, but a 
> better approach is just to let kuberentes garbage collect it when the 
> JobManager owner is deleted. This is already supported for the JobManager 
> deployment itself in JOB_MANAGER_OWNER_REFERENCE. We will use a similar 
> config for HA cluster configmap with empty fallback



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to