You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "garyhil (via GitHub)" <gi...@apache.org> on 2023/08/16 16:15:09 UTC

[GitHub] [camel-k] garyhil opened a new issue, #4671: Setup of Camel-K:

garyhil opened a new issue, #4671:
URL: https://github.com/apache/camel-k/issues/4671

   Hello everyone.
   
   I am trying to set up Camel-K on my local Kubernetes Cluster. Therefore, i followed the [Official Instruction](https://camel.apache.org/camel-k/2.0.x/installation/installation.html).
   
   I have installed Minikube as described [here](https://camel.apache.org/camel-k/2.0.x/installation/platform/minikube.html) on my Windows 10 Machine.
   I have tried the _docker-desktop driver_ and the _hyperv_ driver, but the error stays the same.
   
   As described, I start the minikube via the command `minikube start` and afterward enabled the registry via `minikube addons enable registry`
   
   I have also installed the kamel-CLI and I can call kamel commands from the terminal.
   
   However, after starting `minikube` I want to run the `kamel install` command. I tried multiple things as described in the Installation Guide.
   
   - `kamel install --oml=false`
   - `kamel install --cluster-setup`
   
   I always get the following Error Message: `Error: cannot use empty operator id`
   
   When searching online for this Error Message, I get absolute no helpful result or can find someone with the same problem.
   
   However, when I run the command `kamel install --cluster-setup --operator-id=camel-k`  I get the following Message 
   `Camel K cluster setup completed successfully`
   
   Sounds Great, so I continue with the [Running an Integration](https://camel.apache.org/camel-k/2.0.x/running/running.html) instructions. There it says `kubectl get pod` should at least give me the `camel-k-operator`. However, I get the message `No ressources found in default namespace.`
   
   Running `kamel run hello.groovy` I get: `Error: cannot use empty operator id`
   Running `kamel run hello.groovy --operator-id=camel-k` I get: `Error: unable to find operator with given id [camel-k] - resource may not be reconciled and get stuck in waiting state`
   
   I am feeling like I miss a super simple point. Any ideas what I am doing wrong?
   
   Thanks in advance.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] gansheer commented on issue #4671: Setup of Camel-K:

Posted by "gansheer (via GitHub)" <gi...@apache.org>.
gansheer commented on issue #4671:
URL: https://github.com/apache/camel-k/issues/4671#issuecomment-1680936748

   Hello,
   
   Thank you for the detailed description of your issue. 
   
   Could you indicate the version of Camel-K are you trying to install ?
   
   Also, I would suggest you try to get more infos inside your kubernetes cluster directly:
   * Check the presence of your operator pod in every namespace and its status with `kubectl get pods -l app=camel-k --all-namespaces`
   * Check the logs of your operator with `kubectl logs camel-k-operator-xxxxx` and see if you have any errors
   * Check the events of the pod with `kubectl describe pod camel-k-operator-xxxxx`
   * Check the presence of the platform camel custom resources `kubectl get integrationplatforms.camel.apache.org` : these is used to control the behavior of the Camel K Operator
   * Check the presence of the catalog camel custom resources `camelcatalog.camel.apache.org` : these is used to provides the metadata related the camel runtime used by the Camel K Operator
   * Check each one that is not in the right state with `-o yaml` (like : `kubectl get integrationplatforms.camel.apache.org camel-k -o yaml`)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] garyhil commented on issue #4671: Setup of Camel-K:

Posted by "garyhil (via GitHub)" <gi...@apache.org>.
garyhil commented on issue #4671:
URL: https://github.com/apache/camel-k/issues/4671#issuecomment-1682190862

   Hi,
   
   I have tried this. However, the `Error: cannot use empty operator id` message stays.
   
   Just for clarification: I do not need anything else camel-related installed on the Windows 10 Machine, do I?
   As far as I understood (I am new to Camel-K and Kubernetes) I can run Camel-K solely on a Minikube-Cluster?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] gansheer commented on issue #4671: Setup of Camel-K:

Posted by "gansheer (via GitHub)" <gi...@apache.org>.
gansheer commented on issue #4671:
URL: https://github.com/apache/camel-k/issues/4671#issuecomment-1682220511

   Camel-k is made to run on any Kubernetes implementation. Not all have been tested, but in theory if the kubernetes API is implemented it should work.
   
   You could try to uninstall with the previous command then re-sintall with `kamel install --olm=false --operator-id=camel-k`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] claudio4j commented on issue #4671: Setup of Camel-K:

Posted by "claudio4j (via GitHub)" <gi...@apache.org>.
claudio4j commented on issue #4671:
URL: https://github.com/apache/camel-k/issues/4671#issuecomment-1682222330

   @garyhil I recommend you to use https://camel.zulipchat.com for questions, as more contributors can chime in and help you. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] claudio4j closed issue #4671: Setup of Camel-K:

Posted by "claudio4j (via GitHub)" <gi...@apache.org>.
claudio4j closed issue #4671: Setup of Camel-K: 
URL: https://github.com/apache/camel-k/issues/4671


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] gansheer commented on issue #4671: Setup of Camel-K:

Posted by "gansheer (via GitHub)" <gi...@apache.org>.
gansheer commented on issue #4671:
URL: https://github.com/apache/camel-k/issues/4671#issuecomment-1682178505

   It appears you have the CRD installed but not the operator. The absence of the operator pod probably due to having an error in the `kamel install --olm=false` error,  and the presence of the CRD is due to the success of the `kamel install --cluster-setup --operator-id=camel-k`
   
   What I would suggest is to clean your installation in minikube with`kamel uninstall --olm=false --all` and then try a basic install with `kamel install --olm=false` and check how this installation goes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] claudio4j commented on issue #4671: Setup of Camel-K:

Posted by "claudio4j (via GitHub)" <gi...@apache.org>.
claudio4j commented on issue #4671:
URL: https://github.com/apache/camel-k/issues/4671#issuecomment-1682319966

   closing this continue in zulip chat


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] garyhil commented on issue #4671: Setup of Camel-K:

Posted by "garyhil (via GitHub)" <gi...@apache.org>.
garyhil commented on issue #4671:
URL: https://github.com/apache/camel-k/issues/4671#issuecomment-1681797887

   Hi @gansheer,
   
   Thanks for the quick response.
   I am using camel-k v2.0.0 downloaded from the release page.
   
   **According to your suggestions:**
   I have tried your tips on a minikube cluster with registry add-on and the 
   `kamel install --cluster-setup --operator-id=camel-k`
   command (the extra use of the `operator-id` flag is due to the reason described in my initial post).
   I get the response:
   `Camel K cluster setup completed successfully`.
   
   **According to your suggestions:**
   - `kubectl get pods -l app=camel-k --all-namespaces` gives me the response: `No resources found`.
   - As it seems there is no operator, I was not able to check the 2nd and 3rd suggestion.
   - Running `kubectl get integrationplatforms.camel.apache.org` gives back: `No resources found` (I also tried with the `--all-namespaces` flag.
   - When opening the minikube Dashboard, I can find the following _custom resource definitions_ established:
       - `pipes.camel.apache.org`
       - `builds.camel.apache.org`
       - `camelcataloges.camel.apache.org`
       - `integrationkit.camel.apache.org`
       - `integrationplatforms.camel.apache.org`
       - `integrations.camel.apache.org` 
       - `kameletbindings.camel.apache.org`
       - `kamelets.camel.apache.org`
   - Running `kubectl get integrationplatforms.camel.apache.org camel-k -o yaml` gives me: 
      `Error from server (NotFound): integrationplatforms.camel.apache.org "integrationkit" not found`.
   
      **However**, running the same command withoud the camel-k term 
      `kubectl get integrationplatforms.camel.apache.org -o yaml` gives back: 
        `apiVersion: v1 items: [] kind: List metadata:  resourceVersion: ""` 
       The same accounts for all the Resource Definitions established (see list above).
   
   Inspecting the cluster in the dashboard I can only find camel related Objects in:
      -  Cluster-Roles: `camel-k-edit; camel-k-custom-resource-definitions; camel-k-operator-local-registry`
   
   Looking through the Events log of the cluster I can not find any camel related actions. There are only events regarding the startup of the cluster, the registry activation and the dashboard startup.
   
   Greetings
   Gary
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org