<p>I created an AKS and I deployed the Apache Ignite service on it.
When I check the pods I can see they are working.</p>
<p><a href="https://i.stack.imgur.com/eFI5M.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eFI5M.png" alt="Pods Status" /></a></p>
<p>Also, I can get the load balancer IP.</p>
<p><a href="https://i.stack.imgur.com/oSuDT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oSuDT.png" alt="AKS Load Balancer IP" /></a></p>
<p>I follow the official instructions of Apache and try to connect Ignite with ThinClient.
I share my code and instructions code.</p>
<p><strong>Here is my code:</strong></p>
<pre><code>public void ConnectIgnite()
{
    var cfg = new IgniteClientConfiguration
    {
       Endpoints = new[] { &quot;20.101.12.***:10800&quot; }
    };
    
    var client = Ignition.StartClient(cfg);
}
</code></pre>
<p>But my code is getting below errors;</p>
<blockquote>
<p>System.AggregateException: 'Failed to establish Ignite thin client
connection, examine inner exceptions for details.'</p>
<p>Inner Exception ExtendedSocketException: A connection attempt failed
because the connected party did not properly respond after a period of
time, or established connection failed because connected host has
failed to respond.</p>
</blockquote>
<p><strong>and here is the Apache's instruction code;</strong></p>
<pre><code>ClientConfiguration cfg = new ClientConfiguration().setAddresses(&quot;13.86.186.145:10800&quot;);
IgniteClient client = Ignition.startClient(cfg);

ClientCache&lt;Integer, String&gt; cache = client.getOrCreateCache(&quot;test_cache&quot;);

cache.put(1, &quot;first test value&quot;);

System.out.println(cache.get(1));

client.close();
</code></pre>
<p>Also, here is the official instruction <a href="https://ignite.apache.org/docs/latest/installation/kubernetes/azure-deployment#connecting-with-thin-clients" rel="nofollow noreferrer">link</a></p>
<p>I didn't understand what is wrong? Also, The Instruction says I don't need clientid and clientsecret but I don't want to connect without any security but this is completely another issue.</p>

OguzKaanAkyalcin
<p>I found what is wrong. Apache's official page says: use below XML for the configuration.</p>
<pre><code>&lt;bean class=&quot;org.apache.ignite.configuration.IgniteConfiguration&quot;&gt;

    &lt;property name=&quot;discoverySpi&quot;&gt;
        &lt;bean class=&quot;org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi&quot;&gt;
            &lt;property name=&quot;ipFinder&quot;&gt;
                &lt;bean class=&quot;org.apache.ignite.spi.discovery.tcp.ipfinder.kubernetes.TcpDiscoveryKubernetesIpFinder&quot;&gt;
                    &lt;constructor-arg&gt;
                        &lt;bean class=&quot;org.apache.ignite.kubernetes.configuration.KubernetesConnectionConfiguration&quot;&gt;
                            &lt;property name=&quot;namespace&quot; value=&quot;default&quot; /&gt;
                            &lt;property name=&quot;serviceName&quot; value=&quot;ignite&quot; /&gt;
                        &lt;/bean&gt;
                    &lt;/constructor-arg&gt;
                &lt;/bean&gt;
            &lt;/property&gt;
        &lt;/bean&gt;
    &lt;/property&gt;
&lt;/bean&gt;
</code></pre>
<p>but,</p>
<p>first, that XML needs a beans tag at the top of XML.
Also, namespace value and serviceName value are not compatible with apache's official instruction page. If you follow the apache's page for the setup;</p>
<p>you have to use the below values</p>
<pre><code>&lt;property name=&quot;namespace&quot; value=&quot;ignite&quot; /&gt;
&lt;property name=&quot;serviceName&quot; value=&quot;ignite-service&quot; /&gt;
</code></pre>
<p>instead of</p>
<pre><code>&lt;property name=&quot;namespace&quot; value=&quot;default&quot; /&gt;
&lt;property name=&quot;serviceName&quot; value=&quot;ignite&quot; /&gt;
</code></pre>
<p>end of the changes your XML will look like</p>
<pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
       xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
       xsi:schemaLocation=&quot;
        http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans.xsd&quot;&gt;
    &lt;bean class=&quot;org.apache.ignite.configuration.IgniteConfiguration&quot;&gt;
        &lt;property name=&quot;discoverySpi&quot;&gt;
            &lt;bean class=&quot;org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi&quot;&gt;
                &lt;property name=&quot;ipFinder&quot;&gt;
                    &lt;bean class=&quot;org.apache.ignite.spi.discovery.tcp.ipfinder.kubernetes.TcpDiscoveryKubernetesIpFinder&quot;&gt;
                        &lt;constructor-arg&gt;
                            &lt;bean class=&quot;org.apache.ignite.kubernetes.configuration.KubernetesConnectionConfiguration&quot;&gt;
                                &lt;property name=&quot;namespace&quot; value=&quot;ignite&quot; /&gt;
                                &lt;property name=&quot;serviceName&quot; value=&quot;ignite-service&quot; /&gt;
                            &lt;/bean&gt;
                        &lt;/constructor-arg&gt;
                    &lt;/bean&gt;
                &lt;/property&gt;
            &lt;/bean&gt;
        &lt;/property&gt;
    &lt;/bean&gt;
&lt;/beans&gt;
</code></pre>
<p>I changed my configuration XML and restart the pods with below command and It worked.</p>
<pre><code>kubectl -n service rollout restart deployment ignite-cluster
</code></pre>
