You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2023/09/18 08:23:00 UTC
[jira] [Commented] (CAMEL-19878) camel-main - Using Camel- as context name causes ENV name clash running on Kubernetes
[ https://issues.apache.org/jira/browse/CAMEL-19878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17766267#comment-17766267 ]
Claus Ibsen commented on CAMEL-19878:
-------------------------------------
You can turn off ENV auto configuration via
camel.main.autoConfigurationEnvironmentVariablesEnabled=false
or if using quarkus/sb
camel.quarkus.x=y
camel.springboot.x=y
> camel-main - Using Camel- as context name causes ENV name clash running on Kubernetes
> -------------------------------------------------------------------------------------
>
> Key: CAMEL-19878
> URL: https://issues.apache.org/jira/browse/CAMEL-19878
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Reporter: Claus Ibsen
> Priority: Major
> Fix For: 4.0.1, 4.1.0
>
>
> When running on k8s then it pollute the ENV with services such as
> CAMEL_REST_CACHE_PORT_8080_TCP_PORT=8080
> CAMEL_REST_CACHE_SERVICE_PORT_8443_TCP=8443
> CAMEL_REST_CACHE_PORT_8080_TCP=tcp://172.30.255.45:8080
> CAMEL_REST_CACHE_PORT_8443_TCP_PORT=8443
> CAMEL_REST_CACHE_PORT_8443_TCP_ADDR=172.30.255.45
> CAMEL_REST_CACHE_PORT_8080_TCP_PROTO=tcp
> CAMEL_REST_CACHE_SERVICE_PORT_8080_TCP=8080
> CAMEL_REST_CACHE_PORT_8443_TCP_PROTO=tcp
> CAMEL_REST_CACHE_PORT_8443_TCP=tcp://172.30.255.45:8443
> CAMEL_REST_CACHE_PORT=tcp://172.30.255.45:8080
> CAMEL_REST_CACHE_PORT_8080_TCP_ADDR=172.30.255.45
> CAMEL_REST_CACHE_SERVICE_HOST=172.30.255.45
> CAMEL_REST_CACHE_SERVICE_PORT=8080
> The prefix is the context name, which you can set via
> camel.name = camel-rest-cache
> And since camel.rest. is also known prefix for configuring rest-dsl, then you can have a name clash causing camel to fail on startup
> ERROR [org.apa.cam.qua.mai.CamelMainRuntime] (main) Failed to start application: java.lang.IllegalArgumentException: Cannot find getter method: cache on bean: class org.apache.camel.main.RestConfigurationProperties when binding property: cache.port
--
This message was sent by Atlassian Jira
(v8.20.10#820010)