James Netherton created CAMEL-21720:
---------------------------------------
Summary: camel-kubernetes: Unhealthy pods may be elected as the
cluster leader
Key: CAMEL-21720
URL: https://issues.apache.org/jira/browse/CAMEL-21720
Project: Camel
Issue Type: Bug
Components: camel-kubernetes
Reporter: James Netherton
Assignee: James Netherton
Some more details in this Camel Quarkus issue:
https://github.com/apache/camel-quarkus/issues/6955
Seems pods that are in the failed or not ready state are considered as
candidates for cluster leadership when using the camel-master component.
The issue might be here:
https://github.com/apache/camel/blob/b3e263c064018ed79f4a3572233b112cef126fa7/components/camel-kubernetes/src/main/java/org/apache/camel/component/kubernetes/cluster/lock/KubernetesLeadershipController.java#L477-L483
It grabs a list of pods but does not interrogate their status.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)