# kamel init java.java # kamel run java.java --trait=prometheus.enabled=true # oc logs $(oc get pod -l name=camel-k-operator -o name ) camel-k-operator-764bdf6fb7-hjhk9 camel-k-operator {"level":"error","ts":1621413926.3972192,"logger":"controller-runtime.manager.controller.integration-controller","msg":"Reconciler error","name":"java","namespace":"jbouska","error":"error executing post actions: error during create resource: &{{PodMonitor monitoring.coreos.com/v1} {java jbouska 0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[camel.apache.org/generation:1 camel.apache.org/integration:java] map[] [{camel.apache.org/v1 Integration java 3a7b2d25-b2ff-4b07-99a5-3fc4054bbf27 0xc000971dd0 0xc000971dd1}] [] []} { [] [{http <nil> /q/metrics map[] false <nil> [] [] <nil>}] {map[camel.apache.org/integration:java] []} {false []} 0}}: podmonitors.monitoring.coreos.com is forbidden: User \"system:serviceaccount:jbouska:camel-k-operator\" cannot create resource \"podmonitors\" in API group \"monitoring.coreos.com\" in the namespace \"jbouska\"","errorVerbose":"podmonitors.monitoring.coreos.com is forbidden: User \"system:serviceaccount:jbouska:camel-k-operator\" cannot create resource \"podmonitors\" in API group \"monitoring.coreos.com\" in the namespace \"jbouska\"\nerror during create resource: &{{PodMonitor monitoring.coreos.com/v1} {java jbouska 0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[camel.apache.org/generation:1 camel.apache.org/integration:java] map[] [{camel.apache.org/v1 Integration java 3a7b2d25-b2ff-4b07-99a5-3fc4054bbf27 0xc000971dd0 0xc000971dd1}] [] []} { [] [{http <nil> /q/metrics map[] false <nil> [] [] <nil>}] {map[camel.apache.org/integration:java] []} {false []} 0}}\ngithub.com/apache/camel-k/pkg/trait.(*deployerTrait).clientSideApply\n\tgithub.com/apache/camel-k/pkg/trait/deployer.go:129\ngithub.com/apache/camel-k/pkg/trait.(*deployerTrait).Apply.func2\n\tgithub.com/apache/camel-k/pkg/trait/deployer.go:101\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:325\ngithub.com/apache/camel-k/pkg/util/monitoring.(*instrumentedReconciler).Reconcile\n\tgithub.com/apache/camel-k/pkg/util/monitoring/controller.go:71\ngithub.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tgithub.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:263\ngithub.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tgithub.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:235\ngithub.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.1\n\tgithub.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:198\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1\n\tgithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:185\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\n\tgithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:155\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.BackoffUntil\n\tgithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:156\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\tgithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext\n\tgithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:185\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.UntilWithContext\n\tgithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:99\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:325\ngithub.com/apache/camel-k/pkg/util/monitoring.(*instrumentedReconciler).Reconcile\n\tgithub.com/apache/camel-k/pkg/util/monitoring/controller.go:71\ngithub.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tgithub.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:263\ngithub.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tgithub.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:235\ngithub.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.1\n\tgithub.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:198\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1\n\tgithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:185\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\n\tgithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:155\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.BackoffUntil\n\tgithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:156\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\tgithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext\n\tgithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:185\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.UntilWithContext\n\tgithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:99\nruntime.goexit\n\truntime/asm_amd64.s:1357","stacktrace":"github.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tgithub.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:235\ngithub.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.1\n\tgithub.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:198\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1\n\tgithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:185\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\n\tgithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:155\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.BackoffUntil\n\tgithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:156\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\tgithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext\n\tgithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:185\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.UntilWithContext\n\tgithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:99"}