...
Code Block | ||||
---|---|---|---|---|
| ||||
<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 | Description |
---|---|---|
component | http | Sets the default Camel component to use for calling the remote service. |
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 |
---|---|---|
lookup | environment | What 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 | |
trustCerts | false | Sets whether to turn on trust certificate check when using client lookup |
...