Hi

I have similar problem.

For some reason this host are not resolve
"kubernetes.default.svc.cluster.local".
I am still investigating the reason.
But in my case "kubernetes.default" was resolved, then
I have added the masterUrl in the config file
(I added directly the ip:                         <property
name="masterUrl" value="https://172.22.100.9:6443"/> " of Master API.

<!--
>     Configuration example with Kubernetes IP finder enabled.
> -->
> <beans xmlns="http://www.springframework.org/schema/beans";
>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>        xsi:schemaLocation="
>         http://www.springframework.org/schema/beans
>         http://www.springframework.org/schema/beans/spring-beans.xsd";>
>
>     <bean class="org.apache.ignite.configuration.IgniteConfiguration">
>
>         <!-- Enabling Apache Ignite Persistent Store. -->
>         <property name="dataStorageConfiguration">
>             <bean
> class="org.apache.ignite.configuration.DataStorageConfiguration">
>                 <property name="defaultDataRegionConfiguration">
>                     <bean
> class="org.apache.ignite.configuration.DataRegionConfiguration">
>                         <property name="persistenceEnabled" value="true"/>
>                     </bean>
>                 </property>
>             </bean>
>         </property>
>
>         <!-- Explicitly configure TCP discovery SPI to provide list of
> initial nodes. -->
>         <property name="discoverySpi">
>             <bean
> class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
>                 <property name="ipFinder">
>                     <!--
>                         Enables Kubernetes IP finder and setting custom
> namespace and service names.
>                     -->
>                     <bean
> class="org.apache.ignite.spi.discovery.tcp.ipfinder.kubernetes.TcpDiscoveryKubernetesIpFinder">
>                         <property name="namespace" value="development"/>
>                         <property name="serviceName" value="ignite"/>
>                         <property name="masterUrl" value="
> https://172.22.100.9:6443"/>
>                     </bean>
>                 </property>
>             </bean>
>         </property>
>     </bean>
> </beans>
>


You need to find your master api address.


On Tue, 28 Jul 2020 at 13:19, steve.hostettler <steve.hostett...@gmail.com>
wrote:

> Hello,
>
> making some progress
> I added the missing
>
> hostNetwork: true
>
> and now I get
>
> Caused by: java.net.UnknownHostException:
> kubernetes.default.svc.cluster.local
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Reply via email to