Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Gheorghe-Teodor Bercea
    @doru1004
    I can currently achieve this by deleting my cluster and starting again which is slow and time consuming. (kamel uninstall, followed by a kamel install doesn't trigger an image pull from docker)
    Stefan Bergstein
    @stefan-bergstein

    I am trying to use aws-s3 with an on-premise S3 store. It look like the cert of the CA is missing:

    Caused by: com.amazonaws.SdkClientException: Unable to execute HTTP request: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

    Is there an example for adding the required certificate into the camel integration?

    3 replies
    Anton
    @anton-goncharov_gitlab
    Can anyone please clarify, as the Groovy DSL has been deprecated in Camel since 2.19, is there any recommendation about using it with Camel K? I see Groovy among the languages in the Camel K documentation without any relevant notice. So will it be supported despite the fact it's discontinued in Camel?
    Andrea Cosentino
    @oscerd
    The Groovy language has been removed from the main camel project
    it will be supported as language only in camel-k
    alongside other languages
    like kotlin
    js
    etc.
    mykola.zerniuk
    @kolunyaa
    Hi guys! I am trying to make HTTPS request using PEM certificate file which contains both private key and certification. It works using curl like (curl -E ./commonapi.pem) but i didn't find working solution using Kamel K. The option from documentation with Jolokia trait (https://camel.apache.org/camel-k/latest/traits/jolokia.html) fails when i set jolokia.ca-cert with file path on local machine where i run integration.
    Could not start Jolokia agent: java.lang.IllegalStateException: Cannot open keystore for https communication: java.io.FileNotFoundException: No such CA cert
    Seems like it doesn't look in local fs. Probably someone knows where to put my certificate file to make this option work or some different approach.
    Ricardo M. Augusto
    @rmaugusto
    Hello guys, I installed camel-k in my cluster with AWS EKS using helm (operator 1.1.0), when I install an integration with "kamel run test.groovy" it seems camel-k is stucked, no kit is installed and no error log in operator pod.
    image.png
    If I try exactly the same with minikube it works.
    Ricardo M. Augusto
    @rmaugusto
    Is anybody running camel-k on AWS+EKS ?
    Nicola Ferraro
    @nicolaferraro
    Hi, @rmaugusto, I guess installing Camel K on AWS+EKS has always been the hardest one.. Did you try to setup a registry for images after installing?
    Ricardo M. Augusto
    @rmaugusto

    Hi, @rmaugusto, I guess installing Camel K on AWS+EKS has always been the hardest one.. Did you try to setup a registry for images after installing?

    I saw ECR is not supported yet, I installed registry over proxy for ECR ( https://hub.docker.com/r/catalinpan/aws-ecr-proxy/ )... I have tried some docker commands and worked, I'm gonna try new registry. How could I debug ? I could not see any error log.

    4 replies
    Ricardo M. Augusto
    @rmaugusto
    Server Version: version.Info{Major:"1", Minor:"16+", GitVersion:"v1.16.8-eks-fd1ea7", GitCommit:"fd1ea7c64d0e3ccbf04b124431c659f65330562a", GitTreeState:"clean", BuildDate:"2020-05-28T19:06:00Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"}
    Aidos
    @aidoskz
    why vanilla kubernetes cannot install kamel ?
    1 reply
    pjcubero
    @pjcubero
    I have one question, I have some integrations in camel-k and knative, and I want to know how can I propagate the body from the first knative service to the last one? Because I need to have available in all the integrations.
    16 replies
    Ricardo M. Augusto
    @rmaugusto

    Hello guys, I installed camel-k in my cluster with AWS EKS using helm (operator 1.1.0), when I install an integration with "kamel run test.groovy" it seems camel-k is stucked, no kit is installed and no error log in operator pod.

    Guys, I got it... I installed camel k objects using a namespace and tried run with other namespace, I dont know if it is a problem but it does not work. Would be great add this info at Installation page.

    1 reply
    Mathieu Souchet
    @gasouch_gitlab

    Hi all,
    I have some troubles with my setup camel-k + GKE :

    I have followed instructions on page https://camel.apache.org/camel-k/latest/installation/gke.html

    • create a new Service Account camel-k-builder with Storage Admin Role in GKE
    • create a kaniko-secret.json file from this Service Account (with a new Key ID)
    • run kubectl create secret generic kaniko-secret --from-file=kaniko-secret.json
    • run kamel install --cluster-type kubernetes --registry eu.gcr.io --registry-secret kaniko-secret --organization omega-lab-e5727d --build-publish-strategy=Kaniko

    And if I check the logs with kubectl I have an error I don't understand :

    {"level":"error","ts":1597158674.0363762,"logger":"controller-runtime.controller","msg":"Reconciler error","controller":"integrationkit-controller","request":"default/kit-bsp5t2i2ef1ol6lso4ag","error":"cannot create build: Build.camel.apache.org \"kit-bsp5t2i2ef1ol6lso4ag\" is invalid: type: Required value","errorVerbose":"Build.camel.apache.org \"kit-bsp5t2i2ef1ol6lso4ag\" is invalid: type: Required value\ncannot create build\ngithub.com/apache/camel-k/pkg/controller/integrationkit.(*buildAction).handleBuildSubmitted\n\tgithub.com/apache/camel-k@/pkg/controller/integrationkit/build.go:112\ngithub.com/apache/camel-k/pkg/controller/integrationkit.(*buildAction).Handle\n\tgithub.com/apache/camel-k@/pkg/controller/integrationkit/build.go:57\ngithub.com/apache/camel-k/pkg/controller/integrationkit.(*ReconcileIntegrationKit).Reconcile\n\tgithub.com/apache/camel-k@/pkg/controller/integrationkit/integrationkit_controller.go:228\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.5.2/pkg/internal/controller/controller.go:256\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.5.2/pkg/internal/controller/controller.go:232\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\tsigs.k8s.io/controller-runtime@v0.5.2/pkg/internal/controller/controller.go:211\nk8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\tk8s.io/apimachinery@v0.18.2/pkg/util/wait/wait.go:152\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\tk8s.io/apimachinery@v0.18.2/pkg/util/wait/wait.go:153\nk8s.io/apimachinery/pkg/util/wait.Until\n\tk8s.io/apimachinery@v0.18.2/pkg/util/wait/wait.go:88\nruntime.goexit\n\truntime/asm_amd64.s:1357","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\tgithub.com/go-logr/zapr@v0.1.1/zapr.go:128\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.5.2/pkg/internal/controller/controller.go:258\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.5.2/pkg/internal/controller/controller.go:232\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\tsigs.k8s.io/controller-runtime@v0.5.2/pkg/internal/controller/controller.go:211\nk8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\tk8s.io/apimachinery@v0.18.2/pkg/util/wait/wait.go:152\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\tk8s.io/apimachinery@v0.18.2/pkg/util/wait/wait.go:153\nk8s.io/apimachinery/pkg/util/wait.Until\n\tk8s.io/apimachinery@v0.18.2/pkg/util/wait/wait.go:88"}

    FYI :

    > kamel kit get
    NAME                PHASE        TYPE        IMAGE
    kit-bsp5t2i2ef1ol6lso4ag    Build Submitted    platform
    
    > kubectl get pod
    NAME                                READY   STATUS    RESTARTS   AGE
    camel-k-operator-5985c6f7fd-n4bqk   1/1     Running   0          55m

    Ah, and a last information, my GKE registry (eu.gcr.io) is private.

    If you can help me you'll be my hero !

    4 replies
    pjcubero
    @pjcubero
    Question: I have one integration, and I invoke via curl, how can I reply from the integration to the curl with one message? I need to generate one response to the curl, and the user must see it. Or other option, how can I invoke one integration outside minikube? for example, to send one request via postman?
    Ricardo M. Augusto
    @rmaugusto

    Question: I have one integration, and I invoke via curl, how can I reply from the integration to the curl with one message? I need to generate one response to the curl, and the user must see it. Or other option, how can I invoke one integration outside minikube? for example, to send one request via postman?

    If you are using this example you can see how create integration http with response:
    https://github.com/apache/camel-k/blob/master/examples/routes-rest.js

    Http Component creates kubernetes service to be access by other applications:
    https://camel.apache.org/camel-k/latest/traits/service.html

    pjcubero
    @pjcubero

    Question: I have one integration, and I invoke via curl, how can I reply from the integration to the curl with one message? I need to generate one response to the curl, and the user must see it. Or other option, how can I invoke one integration outside minikube? for example, to send one request via postman?

    If you are using this example you can see how create integration http with response:
    https://github.com/apache/camel-k/blob/master/examples/routes-rest.js

    Http Component creates kubernetes service to be access by other applications:
    https://camel.apache.org/camel-k/latest/traits/service.html

    And once added the trait, service.node-port, how can I know the url or the IP to be accessed outside?

    Christophe Willemsen
    @ikwattro_twitter
    Hi, in the camel-k-examples repository, for the knative-source-basic, I had to replace the apiVersion from v1alpha1 to v1beta1, is this expected ? If yes, I'm happy to make a PR to the repo if that helps.
    pjcubero
    @pjcubero

    Hi, in the camel-k-examples repository, for the knative-source-basic, I had to replace the apiVersion from v1alpha1 to v1beta1, is this expected ? If yes, I'm happy to make a PR to the repo if that helps.

    I have this in my channel... apiVersion: messaging.knative.dev/v1
    kind: InMemoryChannel
    metadata:
    name: channel-a28

    Christophe Willemsen
    @ikwattro_twitter
    Right, I just found apache/camel-k#1636
    Ricardo M. Augusto
    @rmaugusto

    Question: I have one integration, and I invoke via curl, how can I reply from the integration to the curl with one message? I need to generate one response to the curl, and the user must see it. Or other option, how can I invoke one integration outside minikube? for example, to send one request via postman?

    If you are using this example you can see how create integration http with response:
    https://github.com/apache/camel-k/blob/master/examples/routes-rest.js

    Http Component creates kubernetes service to be access by other applications:
    https://camel.apache.org/camel-k/latest/traits/service.html

    And once added the trait, service.node-port, how can I know the url or the IP to be accessed outside?

    It works like any other kubernetes service, you can execute kubectl get svc and see service name and port... To access from outside your cluster you need nodePort or Ingress

    Aleksander Slominski
    @aslom
    What are current instructions in installing and running Camel-K in OpenSHift 4.4 - I have used https://access.redhat.com/documentation/en-us/red_hat_integration/2020-q2/html/deploying_camel_k_integrations_on_openshift/getting-started-with-camel-k#installing-camel-k-operatorhub but I am getting Caused by: java.lang.RuntimeException: Error creating instance of loader: knative-source at org.apache.camel.k.support.RuntimeSupport.lambda$lookupLoaderFromResource$10(RuntimeSupport.java:202)
    using https://redhat-developer-demos.github.io/knative-tutorial/knative-tutorial-camelk/camel-k-eventing.html#camel-k-es-sink
    k apply -f get-started/timed-greeter-source.yaml
    camelsource.sources.knative.dev/timed-greeter created
    k logs timed-greeter-qthcr-6c6c9bb8b5-qvczv
    2020-08-19 01:22:37.450 INFO  [main] LRUCacheFactory - Detected and using LURCacheFactory: camel-caffeine-lrucache
    2020-08-19 01:22:37.703 INFO  [main] ApplicationRuntime - Add listener: org.apache.camel.k.listener.RuntimeConfigurer@4149c063
    2020-08-19 01:22:37.704 INFO  [main] ApplicationRuntime - Add listener: org.apache.camel.k.listener.ContextConfigurer@376a0d86
    2020-08-19 01:22:37.707 INFO  [main] ApplicationRuntime - Add listener: org.apache.camel.k.listener.RoutesConfigurer@222a59e6
    2020-08-19 01:22:37.709 INFO  [main] ApplicationRuntime - Add listener: org.apache.camel.k.listener.RoutesDumper@4ef74c30
    2020-08-19 01:22:37.710 INFO  [main] ApplicationRuntime - Add listener: org.apache.camel.k.listener.PropertiesFunctionsConfigurer@47c81abf
    2020-08-19 01:22:37.721 INFO  [main] ApplicationRuntime - Listener org.apache.camel.k.listener.RuntimeConfigurer@4149c063 executed in phase Starting
    2020-08-19 01:22:37.786 INFO  [main] ApplicationRuntime - Listener org.apache.camel.k.listener.PropertiesFunctionsConfigurer@47c81abf executed in phase Starting
    2020-08-19 01:22:37.788 INFO  [main] BaseMainSupport - Using properties from:
    2020-08-19 01:22:37.809 INFO  [main] RuntimeSupport - Looking up loader for id: knative-source
    Exception in thread "main" org.apache.camel.RuntimeCamelException: java.lang.RuntimeException: Error creating instance of loader: knative-source
        at org.apache.camel.RuntimeCamelException.wrapRuntimeCamelException(RuntimeCamelException.java:52)
        at org.apache.camel.k.listener.RoutesConfigurer.load(RoutesConfigurer.java:64)
        at org.apache.camel.k.listener.RoutesConfigurer.accept(RoutesConfigurer.java:52)
        at org.apache.camel.k.listener.AbstractPhaseListener.accept(AbstractPhaseListener.java:32)
        at org.apache.camel.k.main.ApplicationRuntime$MainListenerAdapter.lambda$invokeListeners$0(ApplicationRuntime.java:179)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
        at java.base/java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:357)
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
        at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
        at org.apache.camel.k.main.ApplicationRuntime$MainListenerAdapter.invokeListeners(ApplicationRuntime.java:178)
        at org.apache.camel.k.main.ApplicationRuntime$MainListenerAdapter.beforeConfigure(ApplicationRuntime.java:152)
        at org.apache.camel.main.BaseMainSupport.postProcessCamelContext(BaseMainSupport.java:584)
        at org.apache.camel.main.BaseMainSupport.initCamelContext(BaseMainSupport.java:423)
        at org.apache.camel.k.main.ApplicationRuntime$MainAdapter.doInit(ApplicationRuntime.java:195)
        at org.apache.camel.support.service.ServiceSupport.init(ServiceSupport.java:83)
        at org.apache.camel.support.service.ServiceSupport.start(ServiceSupport.java:112)
        at org.apache.camel.main.MainSupport.run(MainSupport.java:82)
    Aleksander Slominski
    @aslom
    How do you make sure you have compatible version of Camell-K, Knative and Knative Camel Source - is there table listing combinations somewhere?
    And what is best way to get help? Use glitter? Open github issue?
    Luca Burgazzoli
    @lburgazzoli
    here is ok
    we don't have that document at the moment but we are working to improve the way we deal with knative sources
    here the issue is likely to be an incompatibility between versions as the knative-source loader does not exists any more
    Aleksander Slominski
    @aslom
    Issue to list compatible versions apache/camel-k#1665
    Luca Burgazzoli
    @lburgazzoli
    thx
    Aleksander Slominski
    @aslom
    how can I get compatible version of Camel-K source (or Camel-K) with Knative in Openshift 4.4?
    Luca Burgazzoli
    @lburgazzoli
    @nicolaferraro ^^
    Aleksander Slominski
    @aslom
    Opened issue "Workaround for knative-source loader does not exists any more?" https://gitter.im/apache/camel-k
    Aleksander Slominski
    @aslom
    Somehow can no longer edit my own message? Correct link to issue "Workaround for knative-source loader does not exists any more?" is apache/camel-k#1666
    Andrea Cosentino
    @oscerd
    There is this issue already apache/camel-k#1336
    Aleksander Slominski
    @aslom
    I think matrix compatibility would be very valuable I can create beginning of it - do we have known good combinations to start with?
    Aleksander Slominski
    @aslom
    I was thinking about something simple: Camel-K version X.Y (X.Y.a-X.Y.n) works with Knative A.B and list ?
    2 replies
    Arthur De Magalhaes
    @arthurdm
    hi - is there a place that outlines the complete set of knative components that are available? In a tutorial I saw knative:endpoint and knative:channel, but then I also saw knative:event. wondering if there's a good description of each one.
    12 replies
    pjcubero
    @pjcubero
    I have two questions about camel and kubernetes: First one, when I deploy one integration over kubernetes, executing kamel run ...., I see that I have a lot of deployments of the same integration in kubernetes, why? How can I have only one deployment? Second one, when I deploy one integration, when it's running, in some time, kubernetes shutdown, I don't know why, and I see that there are no pods available for my integration, how can I stabilize the pod once started?
    27 replies
    pjcubero
    @pjcubero
    image.png