--- apiVersion: "v1" kind: "Template" labels: {} metadata: annotations: description: "# Karaf Camel Log QuickStart\n\nThis quickstart demonstrates how\ \ to use SQL via JDBC along with Camel's REST DSL to expose a RESTful API.\n\ \n\n### Building\n\nThe example can be built with\n\n mvn clean install\n\ \n\n### Running the example in fabric8\n\nIt is assumed a running Kubernetes\ \ platform is already running. If not you can find details how to [get started](http://fabric8.io/guide/getStarted/index.html).\n\ \nThe example can be built and deployed using a single goal:\n\n mvn -Pf8-local-deploy\n\ \nWhen the example runs in fabric8, you can use the OpenShift client tool to\ \ inspect the status\n\nTo list all the running pods:\n\n oc get pods\n\n\ Then find the name of the pod that runs this quickstart, and output the logs\ \ from the running pods with:\n\n oc logs \n\nYou can also use\ \ the fabric8 [web console](http://fabric8.io/guide/console.html) to manage\ \ the\nrunning pods, and view logs and much more.\n\n\n\n### Accessing the rest\ \ service\n\nWhen the example is running, a reset service can be accessed to\ \ list available books that can be ordered, and as well order status.\n\nIf\ \ you run the example on a local fabric8 installation using vagrant, then the\ \ REST service is exposes as\n\n http://qs-camel-rest-sql.vagrant.f8\n\n\ The actual endpoint is using context-path `camel-rest-sql/books` and the REST\ \ service provides two services\n\n- books = to list all the available books\ \ that can be ordered\n- order/{id} = to output order status for the given order\ \ id. The example will automatic create new orders with a running order id starting\ \ from 1.\n\nYou can from a web browser then access these services such as:\n\ \n http://qs-camel-rest-sql.vagrant.f8/camel-rest-sql/books\n http://qs-camel-rest-sql.vagrant.f8/camel-rest-sql/books/order/1\n\ \n### Swagger API\n\nThe example provides API documentation of the service using\ \ Swagger using the context-path `camel-rest-sql-api-doc`.\n\nYou can from a\ \ web browser then access the API from:\n\n http://qs-camel-rest-sql.vagrant.f8/camel-rest-sql-api-doc\n\ \n\n### More details\n\nYou can find more details about running this [quickstart](http://fabric8.io/guide/quickstarts/running.html)\ \ on the website. This also includes instructions how to change the Docker image\ \ user and registry.\n\n" fabric8.karaf-camel-rest-sql/iconUrl: "img/icons/camel.svg" fabric8.karaf-camel-rest-sql/summary: "Camel Example using Rest DSL with SQL Database\ \ in Karaf container" labels: {} name: "karaf-camel-rest-sql" objects: - apiVersion: "v1" kind: "Service" metadata: annotations: fabric8.io/iconUrl: "img/icons/camel.svg" labels: project: "karaf-camel-rest-sql" provider: "fabric8" version: "2.2.126" group: "quickstarts" name: "karaf-camel-rest-sql" spec: deprecatedPublicIPs: [] externalIPs: [] ports: - port: 80 protocol: "TCP" targetPort: 8181 selector: project: "karaf-camel-rest-sql" provider: "fabric8" group: "quickstarts" type: "LoadBalancer" - apiVersion: "v1" kind: "ReplicationController" metadata: annotations: fabric8.io/iconUrl: "img/icons/camel.svg" fabric8.io/git-branch: "release-v2.2.126" fabric8.io/git-commit: "3ac0195f9d0fd7d90a06819b99be77dfc4e9acc6" fabric8.io/build-url: "http://null:80/job/oss-parent/2" fabric8.io/build-id: "2" labels: project: "karaf-camel-rest-sql" provider: "fabric8" version: "2.2.126" group: "quickstarts" name: "karaf-camel-rest-sql" spec: replicas: 1 selector: project: "karaf-camel-rest-sql" provider: "fabric8" version: "2.2.126" group: "quickstarts" template: metadata: annotations: {} labels: project: "karaf-camel-rest-sql" provider: "fabric8" version: "2.2.126" group: "quickstarts" spec: containers: - args: [] command: [] env: - name: "KUBERNETES_NAMESPACE" valueFrom: fieldRef: fieldPath: "metadata.namespace" image: "fabric8/quickstart-karaf-camelrest:2.2.126" name: "karaf-camel-rest-sql" ports: - containerPort: 8181 name: "http" - containerPort: 8778 name: "jolokia" resources: limits: cpu: "0" memory: "0" requests: cpu: "0" memory: "0" securityContext: {} volumeMounts: [] imagePullSecrets: [] nodeSelector: {} volumes: [] parameters: []