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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]