Camel K lets you build and deploy your API on Kubernetes or Red Hat OpenShift in less than a second.
oc login -u system:admin
kamel install --cluster-setup
oc login -u developer -p x
oc new-project demo
kamel install
kamel run customer-api.xml \
--open-api customer-api.json \
--name customers \
--dependency camel-undertow \
--dependency camel-rest \
--logging-level org.apache.camel.k=DEBUG \
--property camel.rest.port=8080 \
--env CAMEL_LOG_MSG=" ** Camelk ** This request is handled by this POD: {{env:HOSTNAME}}" \
--env CAMEL_GET_SETBODY=" (V1) --> Enjoy the camelk Knative demo :-) | POD : {{env:HOSTNAME}} \n" \
--env CAMEL_CREATE_SETBODY=" (V1) --> Enjoy the camelk Knative demo :-) | POD : {{env:HOSTNAME}} \n"
curl http://customers-demo.$(minishift ip).nip.io/camel/customer