Open Patrick0308 opened 2 months ago
Maybe when member cluster become unknown, we should deleted finalizers karmada.io/execution-controller on work resource?
Does a Failover Occur After the Pull Cluster goes down?
@XiShanYongYe-Chang Not only deploy resource is deleted, but also Istio’s VirtualService (VS), DestinationRule (DR), ConfigMap, Service and other resources.
@XiShanYongYe-Chang After deleting resource, agent create it immediately.
There should be a cluster failover. All resources on the cluster are deleted. When the cluster recovers, the behavior you describe will occur.
Check whether the failover featuregate is enabled. The failover featuregate is enabled by default in the current version.
Thanks @XiShanYongYe-Chang , I disable failover feature to test. It not recreate resource now.
If I want to enable failover feature, how to avoid recreate resource in this situation? Because some resource can't be recreated such as LoadBalancer Service.
Hi @Patrick0308 You may need to re-trigger the scheduling of resources if you want to achieve your goal. Now we have APIs that can proactively trigger the rescheduling of resources.
For the Failover feature, we plan to perform some iterations to improve user experience, ref #5150. Your comments and suggestions are welcome.
What happened: In pull mode,a member cluster's karmada-agent went down. The cluster's ready status is unknown. The work resource of this member cluster cannot be deleted successfully due to execution-controller finalizer. When karmada-agent up, the karmada-agent will delete and create all resources in member cluster.
What you expected to happen: After a member cluster's karmada-agent goes down and then comes back up, the resources don't be deleted.
How to reproduce it (as minimally and precisely as possible): config.yaml:
command:
Anything else we need to know?:
Environment:
kubectl-karmada version
orkarmadactl version
):