You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Kubernetes Component

Available as of Camel 2.17

The Kubernetes component is a component for integrating your application with Kubernetes standalone or on top of Openshift. 

Maven users will need to add the following dependency to their pom.xml for this component:

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-kubernetes</artifactId>
    <version>x.x.x</version>
    <!-- use the same version as your Camel core version -->
</dependency>

URI format

kubernetes:masterUrl[?options]

You can append query options to the URI in the following format, ?option=value&option=value&...

Options

Name

Default Value

Description

masterUrl

null

Mandatory: The Kubernetes master URL

category

 

Mandatory: The category of producer/consumer. Possible values: namespaces, services, replicationControllers, pods, persistentVolumes, persistentVolumesClaims, secrets, resourcesQuota, serviceAccounts, nodes, builds, buildConfigs

username

 

The username for login to Kubernetes cluster

password

 

The password for login to Kubernetes cluster

operation

 

Producer only: The operation that producer will do. Possible values:

listNamespaces,listNamespacesByLabels,getNamespace,createNamespace,deleteNamespace,listServices,listServicesByLabels,getService,createService,deleteService,listReplicationControllers, listReplicationControllersByLabels,getReplicationController,createReplicationController,deleteReplicationController,listPods, listPodsByLabels,getPod,createPod,deletePod,listPersistentVolumes,listPersistentVolumesByLabels,getPersistentVolume,listPersistentVolumesClaims,listPersistentVolumesClaimsByLabels, getPersistentVolumeClaim,createPersistentVolumeClaim,deletePersistentVolumeClaim,listSecrets,listSecretsByLabels,getSecret,createSecret,deleteSecret,listResourcesQuota, listResourcesQuotaByLabels,getResourceQuota,createResourceQuota,deleteResourceQuota,listServiceAccounts,listServiceAccountsByLabels,getServiceAccount,createServiceAccount, deleteServiceAccount,listNodes,listNodesByLabels,getNode,listBuilds,listBuildsByLabels,getBuild,listBuildConfigs,listBuildConfigsByLabels,getBuildConfig

apiVersion

 

The api Version to use

caCertFile

 

Path to CA cert file

caCertData

 

Path to CA cert data

clientCertFile

 

Path to client cert file

clientCertData

 

Path to client cert data

clientKeyAlgo

 

Key algorithm used by client

clientKeyFile

 

Path to client key file

clientKeyData

 

Path to client key data

clientKeyPassphrase

 

Client key passphrase

oauthToken

 

Authorization token

trustCerts

 

Define if the certs are trusted by default

namespaceName

 

Consumer only: The namespace the consumer will watch

Headers

Name

Type

Description

CamelKubernetesOperation

String

The Producer operation

CamelKubernetesNamespaceName

String

The Namespace name

CamelKubernetesNamespaceLabels

Map

The Namespace Labels

CamelKubernetesServiceLabels

Map

The Service labels

CamelKubernetesServiceName

String

The Service name

CamelKubernetesServiceSpec

io.fabric8.kubernetes.api.model.ServiceSpec

The Spec for a Service

CamelKubernetesReplicationControllersLabels

Map

Replication controller labels

CamelKubernetesReplicationControllerName

String

Replication controller name

  • No labels