Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
xml
xml
<camelContext xmlns="http://camel.apache.org/schema/spring">
  <kubernetesConfiguration id="kubernetes" component="netty4-http"/>
  <route>
    <from uri="direct:start"/>
    <serviceCall name="foo"/>
    <to uri="mock:result"/>
  </route>
</camelContext>

Common Configuration

These are the common configuration that each implementation is sharing.

Name

Default
Value

Description
componenthttp

Sets the default Camel component to use for calling the remote service.
By default the http component is used. You can configure this to use netty4-http, jetty, restlet or some other components of choice.
If the service is not HTTP protocol you can use other components such as mqtt, jms, amqp</tt> etc.
If the service call has been configured using an uri, then the component from the uri is used instead of this default component.

loadBalancerRef Sets a reference to a custom org.apache.camel.spi.ServiceCallLoadBalancer to use.
serverListStrategyRef Sets a reference to a custom org.apache.camel.spi.ServiceCallServerListStrategy to use.
clientProperty These properties are specific to what service call implementation are in use.
For example if using ribbon, then the client properties are define in com.netflix.client.config.CommonClientConfigKey.

 

Kubernetes Configuration

Name

Default Value

Description

lookupenvironmentWhat strategy to lookup the service. Possible values: environment, dns, client. By default enviornment is used to use environment variables. dns is for using DNS domain names. client is for use Java Client to call the kubernetes master API and query which servers are active hosting the service.
dnsDomain Sets the DNS domain to use for DNS lookup.
namespace The kubernetes namespace to use. Will by default use namespace from the ENV variable KUBERNETES_MASTER.
apiVersion Client lookup. Kubernetes API version.
 masterUrl Client lookup. The url for the Kubernets master. 
username Sets the username for authentication when using client lookup
password Sets the password for authentication when using client lookup
oauthToken Sets the OAUTH token for authentication (instead of username/password) when using client lookup
caCertData Sets the Certificate Authority data when using client lookup
caCertFile Sets the Certificate Authority data that are loaded from the file when using client lookup
clientCertData Sets the Client Certificate data when using client lookup
clientCertFile Sets the Client Certificate data that are loaded from the file when using client lookup
clientKeyAlgo Sets the Client Keystore algorithm, such as RSA when using client lookup
clientKeyData Sets the Client Keystore data when using client lookup
clientKeyFile Sets the Client Keystore data that are loaded from the file when using client lookup
clientKeyPassphrase Sets the Client Keystore passphrase when using client lookup
trustCertsfalseSets whether to turn on trust certificate check when using client lookup

...