Class KubernetesClusterServiceConfig

java.lang.Object
org.apache.camel.quarkus.component.kubernetes.cluster.KubernetesClusterServiceConfig

@ConfigRoot(name="camel.cluster.kubernetes") public class KubernetesClusterServiceConfig extends Object
  • Field Details

    • enabled

      @ConfigItem(defaultValue="false") public boolean enabled
      Whether a Kubernetes Cluster Service should be automatically configured according to 'quarkus.camel.cluster.kubernetes.*' configurations.
    • id

      @ConfigItem public Optional<String> id
      The cluster service ID (defaults to null).
    • masterUrl

      @ConfigItem public Optional<String> masterUrl
      The URL of the Kubernetes master (read from Kubernetes client properties by default).
    • connectionTimeoutMillis

      @ConfigItem public Optional<Integer> connectionTimeoutMillis
      The connection timeout in milliseconds to use when making requests to the Kubernetes API server.
    • namespace

      @ConfigItem public Optional<String> namespace
      The name of the Kubernetes namespace containing the pods and the configmap (autodetected by default).
    • podName

      @ConfigItem public Optional<String> podName
      The name of the current pod (autodetected from container host name by default).
    • jitterFactor

      @ConfigItem public Optional<Double> 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

      @ConfigItem public Optional<Long> leaseDurationMillis
      The default duration of the lease for the current leader (defaults to 15000).
    • renewDeadlineMillis

      @ConfigItem public Optional<Long> renewDeadlineMillis
      The deadline after which the leader must stop its services because it may have lost the leadership (defaults to 10000).
    • retryPeriodMillis

      @ConfigItem public Optional<Long> retryPeriodMillis
      The time between two subsequent attempts to check and acquire the leadership. It is randomized using the jitter factor (defaults to 2000).
    • order

      @ConfigItem public Optional<Integer> order
      Service lookup order/priority (defaults to 2147482647).
    • resourceName

      @ConfigItem public Optional<String> 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> leaseResourceType
      The lease resource type used in Kubernetes, either 'config-map' or 'lease' (defaults to 'lease').
    • rebalancing

      @ConfigItem(defaultValue="true") public boolean rebalancing
      Whether the camel master namespace leaders should be distributed evenly across all the camel contexts in the cluster.
    • labels

      @ConfigItem public Map<String,String> labels
      The labels key/value used to identify the pods composing the cluster, defaults to empty map.
  • Constructor Details

    • KubernetesClusterServiceConfig

      public KubernetesClusterServiceConfig()