Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    Gheorghe-Teodor Bercea
    Or maybe all my debug messages get redirected and they're just not printed even though I run with --dev ? I'm not sure what's going on
    Nicola Ferraro
    Hi @doru1004 , that's the expected behavior, every run does not use stuff from previous runs. May you want to share the example, so we can check what's going on? If you delete the whole integration and deploy it afresh, does it work? Sometimes it happened also to me that container logs are not printed when the cluster is overloaded.. but it depends
    Gheorghe-Teodor Bercea
    I had the impression that certain parts of the code aren't being run such as the dependency aggregation. I have a simple integration just an integration which prints a message to Slack using the Camel Slack component. The very first time I ran it a while back it took a longer to launch then it launched really quickly from then on so it feels like some steps are skipped or cached.
    Maybe I'm not deleting the integration ?
    Gheorghe-Teodor Bercea
    Just to clarify, I'm not seeing the prints I'm doing from within the camel k source code which I'm building myself.
    Luca Burgazzoli
    you mean the camel k operator ?
    Gheorghe-Teodor Bercea
    I guess so
    When I do a kamel uninstall and then an install again, is there any reuse happening ?
    It always seems like the second install is faster than the first, if so is there some cache I need to clear?
    Gheorghe-Teodor Bercea
    Also when I do kamel run on an integration I'd like the builder to run every time for debug purposes, not sure what I need to modify to get that effect
    Luca Burgazzoli
    if you are changing the go code, then you need to build a container image, push to a registry and reference it upon install
    Gheorghe-Teodor Bercea
    I'm doing that
    Luca Burgazzoli
    so delete the kits
    and the builder will kick in
    Gheorghe-Teodor Bercea
    how do I clear the kits?
    Luca Burgazzoli
    kamel delete kit
    or with kubectl
    Gheorghe-Teodor Bercea
    is there an additional option I need to pass kamel install with the new image path? I only do this: kamel install --registry=registry:5000 --registry-insecure
    Gheorghe-Teodor Bercea
    $ k get pods
    camel-k-kit-bs49lrom5h99pjsjpdig-builder 0/1 Completed 0 14d
    camel-k-operator-68c8fcf59b-fll45 1/1 Running 0 34m
    That's all I have
    This is what is outputted when I run kamel run:
    integration "sink" created
    Condition "IntegrationPlatformAvailable" is "True" for Integration sink: camel-k
    Progress: integration "sink" in phase Initialization
    Integration sink in phase "Initialization"
    Progress: integration "sink" in phase Building Kit
    Integration sink in phase "Building Kit"
    Condition "IntegrationKitAvailable" is "False" for Integration sink: creating a new integration kit
    Progress: integration "sink" in phase Deploying
    Condition "IntegrationKitAvailable" is "True" for Integration sink: kit-bs49lrom5h99pjsjpdig
    Integration sink in phase "Deploying"
    Progress: integration "sink" in phase Running
    Condition "DeploymentAvailable" is "True" for Integration sink: deployment name is sink
    Condition "CronJobAvailable" is "False" for Integration sink: different controller strategy used (deployment)
    Condition "ServiceAvailable" is "False" for Integration sink: no http service required
    Condition "ExposureAvailable" is "False" for Integration sink: no host or service defined
    Integration sink in phase "Running"
    Condition "Ready" is "False" for Integration sink
    Condition "Ready" is "True" for Integration sink
    Then it just runs and no builder gets invoked
    Luca Burgazzoli
    if it runs without build it means a compatible kit is still there
    kubectl delete ik —all
    Gheorghe-Teodor Bercea
    That worked
    Nice, I can even see it now inside the local registry if I use k get ik
    Thanks a lot!
    Gheorghe-Teodor Bercea
    Is there an additional parameter I need to give kamel install to force it to pull the image from docker or does it do that by default ?
    Gheorghe-Teodor Bercea
    I changed the builder go code and I want to print some debug messages, where are those messages printed? I use fmt with os.Stdout and I also used log.info () but I can't find where those output messages get printed
    Luca Burgazzoli
    you can run the operator outside the cluster
    6 replies
    so scale the deployment
    set the env var WATCH_NAMESPACE to the namespace
    and run
    kamel operator
    Gheorghe-Teodor Bercea
    Is there a way to force kamel to update the operator?
    Pull the image again from docker etc
    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

    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
    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
    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
    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
    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.