Class KubernetesClusterServiceConfig
java.lang.Object
org.apache.camel.quarkus.component.kubernetes.cluster.KubernetesClusterServiceConfig
@ConfigRoot(name="camel.cluster.kubernetes")
public class KubernetesClusterServiceConfig
extends Object
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionThe connection timeout in milliseconds to use when making requests to the Kubernetes API server.booleanWhether a Kubernetes Cluster Service should be automatically configured according to 'quarkus.camel.cluster.kubernetes.*' configurations.The cluster service ID (defaults to null).The jitter factor to apply in order to prevent all pods to call Kubernetes APIs in the same instant (defaults to 1.2).The labels key/value used to identify the pods composing the cluster, defaults to empty map.The default duration of the lease for the current leader (defaults to 15000).Optional<org.apache.camel.component.kubernetes.cluster.LeaseResourceType>The lease resource type used in Kubernetes, either 'config-map' or 'lease' (defaults to 'lease').The URL of the Kubernetes master (read from Kubernetes client properties by default).The name of the Kubernetes namespace containing the pods and the configmap (autodetected by default).Service lookup order/priority (defaults to 2147482647).The name of the current pod (autodetected from container host name by default).booleanWhether the camel master namespace leaders should be distributed evenly across all the camel contexts in the cluster.The deadline after which the leader must stop its services because it may have lost the leadership (defaults to 10000).The name of the lease resource used to do optimistic locking (defaults to 'leaders').The time between two subsequent attempts to check and acquire the leadership. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
enabled
@ConfigItem(defaultValue="false") public boolean enabledWhether a Kubernetes Cluster Service should be automatically configured according to 'quarkus.camel.cluster.kubernetes.*' configurations. -
id
The cluster service ID (defaults to null). -
masterUrl
The URL of the Kubernetes master (read from Kubernetes client properties by default). -
connectionTimeoutMillis
The connection timeout in milliseconds to use when making requests to the Kubernetes API server. -
namespace
The name of the Kubernetes namespace containing the pods and the configmap (autodetected by default). -
podName
The name of the current pod (autodetected from container host name by default). -
jitterFactor
The jitter factor to apply in order to prevent all pods to call Kubernetes APIs in the same instant (defaults to 1.2). -
leaseDurationMillis
The default duration of the lease for the current leader (defaults to 15000). -
renewDeadlineMillis
The deadline after which the leader must stop its services because it may have lost the leadership (defaults to 10000). -
retryPeriodMillis
The time between two subsequent attempts to check and acquire the leadership. It is randomized using the jitter factor (defaults to 2000). -
order
Service lookup order/priority (defaults to 2147482647). -
resourceName
The name of the lease resource used to do optimistic locking (defaults to 'leaders'). The resource name is used as prefix when the underlying Kubernetes resource can manage a single lock. -
leaseResourceType
@ConfigItem public Optional<org.apache.camel.component.kubernetes.cluster.LeaseResourceType> leaseResourceTypeThe lease resource type used in Kubernetes, either 'config-map' or 'lease' (defaults to 'lease'). -
rebalancing
@ConfigItem(defaultValue="true") public boolean rebalancingWhether the camel master namespace leaders should be distributed evenly across all the camel contexts in the cluster. -
labels
The labels key/value used to identify the pods composing the cluster, defaults to empty map.
-
-
Constructor Details
-
KubernetesClusterServiceConfig
public KubernetesClusterServiceConfig()
-