You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "mrinalsharma (via GitHub)" <gi...@apache.org> on 2023/03/31 22:54:23 UTC

[GitHub] [camel-karavan] mrinalsharma opened a new issue, #701: KubernetesClient not able to access cluster

mrinalsharma opened a new issue, #701:
URL: https://github.com/apache/camel-karavan/issues/701

   ```
   aused by: java.net.UnknownHostException: kubernetes.default.svc
           at java.base/java.net.InetAddress$CachedAddresses.get(InetAddress.java:801)
           at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1524)
           at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1381)
           at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1305)
           at okhttp3.Dns.lambda$static$0(Dns.java:39)
           at okhttp3.internal.connection.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:171)
           at okhttp3.internal.connection.RouteSelector.nextProxy(RouteSelector.java:135)
           at okhttp3.internal.connection.RouteSelector.next(RouteSelector.java:84)
           at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.java:187)
           at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.java:108)
           at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.java:88)
           at okhttp3.internal.connection.Transmitter.newExchange(Transmitter.java:169)
           at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:41)
   ```
   The error is because of line `System.setProperty("kubeconfig", "/Users/mgubaidu/projects/oss/camel-karavan/karavan-app/karavan-kubeconfig.yaml");`
   
   I think it should be changed to 
   ```System.setProperty("KUBECONFIG", "~/.kube/config");```
   
   After changing to `KUBECONFIG`, code works.


-- 
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-karavan] mgubaidullin closed issue #701: KubernetesClient not able to access cluster

Posted by "mgubaidullin (via GitHub)" <gi...@apache.org>.
mgubaidullin closed issue #701: KubernetesClient not able to access cluster
URL: https://github.com/apache/camel-karavan/issues/701


-- 
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-karavan] davsclaus commented on issue #701: KubernetesClient not able to access cluster

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus commented on issue #701:
URL: https://github.com/apache/camel-karavan/issues/701#issuecomment-1492854291

   Thanks, can you maybe send the code change as a PR


-- 
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