-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to get sample RestWithUndertow working #1175
Comments
Can you add some more information about the environment ? |
I am using minishift on Laptop OCv3.11.Please let me know if you need any specific information |
would be nice to know the camel-k version, knative version, the command line used to run the code and how the camel-k operator is configured (i.e. provide the IntegrationPlatform custom resource) |
I am running this on minishift 3.11. CamelK operator installed using "Kamel Install". Below is other details. bash-3.2$ Kamel version Operator Imaged Used -- Command used to run the code-- attached is the route.js Please let me know if anything else required. This issue i am facing with all the CamelK resource creation. |
What is the knative version you have installed ? camel-k now requires serving v1 api |
I have not manually installed Knative. I have followed the CamelK document and there is no Knative install step. |
can you post the output of:
|
apiVersion: v1
|
apiVersion: camel.apache.org/v1
|
looks like camel-k thinks you have knative installed somehow. can you try to delete the integration kits and run it again ? oc delete integrationkits --all I'm trying to install minishift but experiencing few issues to get it running |
I did try to reproduce the issue but it works for me so to me it looks like your minishift set-up is somehow broken, can you try to recreate it ? |
So just to let you know i do have Knative installed and running for other OpenShift NameSpace not the one i am running using Camel and if this is the case then this is BIg issue in my view.What do you think we can not have 2 different NameSpaces one belong to Knative and one for CamelK on minishift ?? |
Is there a specific reason you can't have knative on the same namespace? |
in that case you have different options:
|
Please could you help me how to do the same since i am using minishift. Like this a common scenario and everybody can stuck with |
the simplest thing you can do is:
this will instruct camel-k to deploy applications without taking into account knative |
Thanks. Let me try to test this and will update you |
Got it working now. Thanks |
Hi When trying to run the code getting this error-
{"level":"info","ts":1577616088.4333324,"logger":"camel-k.controller.integration","msg":"Reconciling Integration","request-namespace":"myproject","request-name":"rest-with-undertow"}
{"level":"info","ts":1577616088.4333866,"logger":"camel-k.controller.integration","msg":"Invoking action deploy","request-namespace":"myproject","request-name":"rest-with-undertow","api-version":"camel.apache.org/v1","kind":"Integration","ns":"myproject","name":"rest-with-undertow"}
{"level":"info","ts":1577616088.4334643,"logger":"camel-k.trait","msg":"Apply trait: camel"}
{"level":"info","ts":1577616088.441048,"logger":"camel-k.trait","msg":"Apply trait: knative"}
{"level":"info","ts":1577616088.4410796,"logger":"camel-k.trait","msg":"Apply trait: environment"}
{"level":"info","ts":1577616088.4410868,"logger":"camel-k.trait","msg":"Apply trait: deployer"}
{"level":"info","ts":1577616088.4416955,"logger":"camel-k.trait","msg":"Apply trait: gc"}
{"level":"info","ts":1577616088.442474,"logger":"camel-k.trait","msg":"Apply trait: knative-service"}
{"level":"info","ts":1577616088.4424946,"logger":"camel-k.trait","msg":"Apply trait: container"}
{"level":"info","ts":1577616088.4425054,"logger":"camel-k.traits","msg":"Environment variable POD_NAME uses fieldRef and cannot be set on a Knative service","trait":"container"}
{"level":"info","ts":1577616088.4425159,"logger":"camel-k.trait","msg":"Apply trait: jolokia"}
{"level":"info","ts":1577616088.442522,"logger":"camel-k.trait","msg":"Apply trait: prometheus"}
{"level":"info","ts":1577616088.4425256,"logger":"camel-k.trait","msg":"Apply trait: classpath"}
{"level":"info","ts":1577616088.4425483,"logger":"camel-k.trait","msg":"Apply trait: owner"}
{"level":"error","ts":1577616089.744228,"logger":"controller-runtime.controller","msg":"Reconciler error","controller":"integration-controller","request":"myproject/rest-with-undertow","error":"error executing post actions: error during replace resource: could not create or replace resource rest-with-undertow: no matches for kind "Service" in version "serving.knative.dev/v1"","errorVerbose":"no matches for kind "Service" in version "serving.knative.dev/v1"\ncould not create or replace resource rest-with-undertow\ngithub.com/apache/camel-k/pkg/util/kubernetes.ReplaceResource\n\tgithub.com/apache/camel-k@/pkg/util/kubernetes/replace.go:69\ngithub.com/apache/camel-k/pkg/util/kubernetes.ReplaceResources\n\tgithub.com/apache/camel-k@/pkg/util/kubernetes/replace.go:38\ngithub.com/apache/camel-k/pkg/trait.(*deployerTrait).Apply.func1\n\tgithub.com/apache/camel-k@/pkg/trait/deployer.go:64\ngithub.com/apache/camel-k/pkg/trait.Apply\n\tgithub.com/apache/camel-k@/pkg/trait/trait.go:52\ngithub.com/apache/camel-k/pkg/controller/integration.(*deployAction).Handle\n\tgithub.com/apache/camel-k@/pkg/controller/integration/deploy.go:56\ngithub.com/apache/camel-k/pkg/controller/integration.(*ReconcileIntegration).Reconcile\n\tgithub.com/apache/camel-k@/pkg/controller/integration/integration_controller.go:257\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.4.0/pkg/internal/controller/controller.go:256\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.4.0/pkg/internal/controller/controller.go:232\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\tsigs.k8s.io/controller-runtime@v0.4.0/pkg/internal/controller/controller.go:211\nk8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\tk8s.io/apimachinery@v0.0.0/pkg/util/wait/wait.go:152\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\tk8s.io/apimachinery@v0.0.0/pkg/util/wait/wait.go:153\nk8s.io/apimachinery/pkg/util/wait.Until\n\tk8s.io/apimachinery@v0.0.0/pkg/util/wait/wait.go:88\nruntime.goexit\n\truntime/asm_amd64.s:1357\nerror during replace resource\ngithub.com/apache/camel-k/pkg/trait.(*deployerTrait).Apply.func1\n\tgithub.com/apache/camel-k@/pkg/trait/deployer.go:65\ngithub.com/apache/camel-k/pkg/trait.Apply\n\tgithub.com/apache/camel-k@/pkg/trait/trait.go:52\ngithub.com/apache/camel-k/pkg/controller/integration.(*deployAction).Handle\n\tgithub.com/apache/camel-k@/pkg/controller/integration/deploy.go:56\ngithub.com/apache/camel-k/pkg/controller/integration.(*ReconcileIntegration).Reconcile\n\tgithub.com/apache/camel-k@/pkg/controller/integration/integration_controller.go:257\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.4.0/pkg/internal/controller/controller.go:256\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.4.0/pkg/internal/controller/controller.go:232\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\tsigs.k8s.io/controller-runtime@v0.4.0/pkg/internal/controller/controller.go:211\nk8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\tk8s.io/apimachinery@v0.0.0/pkg/util/wait/wait.go:152\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\tk8s.io/apimachinery@v0.0.0/pkg/util/wait/wait.go:153\nk8s.io/apimachinery/pkg/util/wait.Until\n\tk8s.io/apimachinery@v0.0.0/pkg/util/wait/wait.go:88\nruntime.goexit\n\truntime/asm_amd64.s:1357\nerror executing post actions\ngithub.com/apache/camel-k/pkg/trait.Apply\n\tgithub.com/apache/camel-k@/pkg/trait/trait.go:54\ngithub.com/apache/camel-k/pkg/controller/integration.(*deployAction).Handle\n\tgithub.com/apache/camel-k@/pkg/controller/integration/deploy.go:56\ngithub.com/apache/camel-k/pkg/controller/integration.(*ReconcileIntegration).Reconcile\n\tgithub.com/apache/camel-k@/pkg/controller/integration/integration_controller.go:257\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.4.0/pkg/internal/controller/controller.go:256\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.4.0/pkg/internal/controller/controller.go:232\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\tsigs.k8s.io/controller-runtime@v0.4.0/pkg/internal/controller/controller.go:211\nk8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\tk8s.io/apimachinery@v0.0.0/pkg/util/wait/wait.go:152\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\tk8s.io/apimachinery@v0.0.0/pkg/util/wait/wait.go:153\nk8s.io/apimachinery/pkg/util/wait.Until\n\tk8s.io/apimachinery@v0.0.0/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.4.0/pkg/internal/controller/controller.go:258\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.4.0/pkg/internal/controller/controller.go:232\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\tsigs.k8s.io/controller-runtime@v0.4.0/pkg/internal/controller/controller.go:211\nk8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\tk8s.io/apimachinery@v0.0.0/pkg/util/wait/wait.go:152\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\tk8s.io/apimachinery@v0.0.0/pkg/util/wait/wait.go:153\nk8s.io/apimachinery/pkg/util/wait.Until\n\tk8s.io/apimachinery@v0.0.0/pkg/util/wait/wait.go:88"}
The text was updated successfully, but these errors were encountered: