[
https://issues.apache.org/jira/browse/FLINK-41822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18154797#comment-18154797
]
Ahmed Hamdy commented on FLINK-41822:
-------------------------------------
This is different from https://issues.apache.org/jira/browse/FLINK-22262
scoping job HA configmaps not cluster configmap
> 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)