This is an automated email from the ASF dual-hosted git repository. pcongiusti pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 9ff86dcbfcdfc485b3d16e98f75a1aab16cf25a4 Author: gre8t <[email protected]> AuthorDate: Wed Apr 6 19:47:32 2022 +0100 added a readme, second example and changed first example file name --- examples/traits/service/README.md | 7 +++++++ examples/traits/service/{service.java => RestDSL.java} | 3 +-- examples/traits/service/{service.java => RestDSL2.java} | 4 +--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/examples/traits/service/README.md b/examples/traits/service/README.md new file mode 100644 index 000000000..61434d8c8 --- /dev/null +++ b/examples/traits/service/README.md @@ -0,0 +1,7 @@ +# SERVICE EXAMPLE + +This folder contains examples of how to use a `trait service`. You can use them to learn more about how to enable services for integrations deployed on the cluster. + +To access integration outside the cluster you can enable a nodePort when you deploy integration. An example is `./RestDSL.java.` + +You can also optionally decide to just go with the default clusterIP if you do not want your integration to be directly exposed to the outside world. An example of this use case is `./RestDSL2.java` \ No newline at end of file diff --git a/examples/traits/service/service.java b/examples/traits/service/RestDSL.java similarity index 95% copy from examples/traits/service/service.java copy to examples/traits/service/RestDSL.java index f7ccc48c6..fcd1bc32d 100644 --- a/examples/traits/service/service.java +++ b/examples/traits/service/RestDSL.java @@ -17,8 +17,7 @@ // // To run this integrations use: -// -// kamel run service.java --trait service.enabled=true\ +// kamel run RestDSL.java --trait service.enabled=true\ // --trait service.node-port=true // import org.apache.camel.Exchange; diff --git a/examples/traits/service/service.java b/examples/traits/service/RestDSL2.java similarity index 92% rename from examples/traits/service/service.java rename to examples/traits/service/RestDSL2.java index f7ccc48c6..f5d381c10 100644 --- a/examples/traits/service/service.java +++ b/examples/traits/service/RestDSL2.java @@ -17,9 +17,7 @@ // // To run this integrations use: -// -// kamel run service.java --trait service.enabled=true\ -// --trait service.node-port=true +// kamel run RestDSL2.java --trait service.enabled=true // import org.apache.camel.Exchange;
