Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-20054

camel-kubernetes - Configuration of Kubernetes secrets with Camel K not working as expected

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.20.1
    • 3.20.9, 3.21.3, 3.22.0, 4.0.3, 4.2.0
    • camel-kubernetes
    • None
    • local kind Kubernetes cluster

      Camel K 2.0.1

      Camel 3.20.1 (indirectly from Camel K)

    • Unknown

    Description

      As discussed in https://github.com/apache/camel-k/issues/4841 there seems to be a configuration problem with Kubernetes secrets (and probably config maps).

      The CAMEL_K_MOUNT_PATH_SECRETS environment variable is set correctly as documented https://camel.apache.org/manual/using-propertyplaceholder.html#_using_kubernetes_property_placeholder_functions.

      However, I get the message "Mount path must be configured" when I try to reference secret:some/key. It works if I additionally specify -Dcamel.k.mount-path.secrets=/etc/camel/conf.d/_secrets which is the same path as the one set already in the environment variable.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            davsclaus Claus Ibsen
            aklemp Andreas Klemp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment