You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2017/04/14 08:08:17 UTC

camel git commit: Improve camel-kubernetes docs a little

Repository: camel
Updated Branches:
  refs/heads/master accbed797 -> 04fbd7a82


Improve camel-kubernetes docs a little


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/04fbd7a8
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/04fbd7a8
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/04fbd7a8

Branch: refs/heads/master
Commit: 04fbd7a8207e5af03ee0e98da7669bbb40957fb5
Parents: accbed7
Author: Andrea Cosentino <an...@gmail.com>
Authored: Fri Apr 14 10:07:33 2017 +0200
Committer: Andrea Cosentino <an...@gmail.com>
Committed: Fri Apr 14 10:07:33 2017 +0200

----------------------------------------------------------------------
 .../src/main/docs/kubernetes-component.adoc     | 48 ++++++++++++++++++++
 1 file changed, 48 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/04fbd7a8/components/camel-kubernetes/src/main/docs/kubernetes-component.adoc
----------------------------------------------------------------------
diff --git a/components/camel-kubernetes/src/main/docs/kubernetes-component.adoc b/components/camel-kubernetes/src/main/docs/kubernetes-component.adoc
index 29fe8ae..491ee09 100644
--- a/components/camel-kubernetes/src/main/docs/kubernetes-component.adoc
+++ b/components/camel-kubernetes/src/main/docs/kubernetes-component.adoc
@@ -180,3 +180,51 @@ with the following path and query parameters:
 
 |CamelKubernetesConfigData |Map |ConfigMap Data
 |=======================================================================
+
+
+### Categories
+
+Actually the camel-kubernetes component supports the following Kubernetes resources
+
+- Namespaces
+- Pods
+- Replication Controllers
+- Services
+- Persistent Volumes
+- Persistent Volume Claims
+- Secrets
+- Resource Quota
+- Service Accounts
+- Nodes
+- Configmaps
+
+In Openshift also
+
+- Builds
+- BuildConfigs
+
+### Usage
+
+#### Producer examples
+
+Here we show some examples of producer using camel-kubernetes.
+
+#### Create a pod
+
+[source,java]
+-------------------------------------------------------------
+from("direct:createPod")
+    .toF("kubernetes://%s?oauthToken=%s&category=pods&operation=createPod", host, authToken);
+-------------------------------------------------------------
+
+By using the KubernetesConstants.KUBERNETES_POD_SPEC header you can specify your PodSpec and pass it to this operation.
+
+#### Delete a pod
+
+[source,java]
+-------------------------------------------------------------
+from("direct:createPod")
+    .toF("kubernetes://%s?oauthToken=%s&category=pods&operation=deletePod", host, authToken);
+-------------------------------------------------------------
+
+By using the KubernetesConstants.KUBERNETES_POD_NAME header you can specify your Pod name and pass it to this operation.