<p>I am new to Ignite and Kubernetes. I have a.Net Core 3.1 web application which is hosted Azure Linux App Service. </p>

<p>I followed the instructions <a href="https://apacheignite.readme.io/docs/microsoft-azure-deployment" rel="nofollow noreferrer">(Apache Ignite Instructions Offical Site)</a> and Apache Ignite could run on Azure Kubernetes. I could create a sample table and read-write actions worked successfully. Here is the screenshot of my success tests on PowerShell.</p>

<p><a href="https://i.stack.imgur.com/ly7Py.png" rel="nofollow noreferrer">Please see the success test</a></p>

<p>Now, I try to connect Apache Ignite from my .net core web app but I couldn't make it.
My code is as below. I try to connect with IgniteConfiguration and SpringCfgXml, but both of them getting error.</p>

<pre><code>private void Initialize()
{
    var cfg = GetIgniteConfiguration();
    _ignite = Ignition.Start(cfg);
    InitializeCaches();
}

public IgniteConfiguration GetIgniteConfiguration()
{
    var appSettingsJson = AppSettingsJson.GetAppSettings();
    var igniteNodes = appSettingsJson["AppSettings:IgniteNodes"];
    var nodeList = igniteNodes.Split(",");
    var config = new IgniteConfiguration
    {
        Logger = new IgniteLogger(),
        DiscoverySpi = new TcpDiscoverySpi
        {
            IpFinder = new TcpDiscoveryStaticIpFinder
            { 
                Endpoints = nodeList
            },
            SocketTimeout = TimeSpan.FromSeconds(5)
        },
        IncludedEventTypes = EventType.CacheAll,
        CacheConfiguration = GetCacheConfiguration()
    };
    return config;
}
</code></pre>

<p>The first error I get:</p>

<blockquote>
  <p>Apache.Ignite.Core.Common.IgniteException   HResult=0x80131500<br>
  Message=Java class is not found (did you set IGNITE_HOME environment
  variable?):
  org/apache/ignite/internal/processors/platform/PlatformIgnition<br>
  Source=Apache.Ignite.Core</p>
</blockquote>

<p>Also, I have no idea what I am gonna set for IGNITE_HOME, and username and secret to authentication. </p>

OguzKaanAkyalcin
<p>Solution : 
I finally connect the Ignite on Azure Kubernetes.</p>

<p>Here is my connection method.</p>

<pre><code>public void TestConnection()
{
    var cfg = new IgniteClientConfiguration
    {
        Host = "MyHost",
        Port = 10800,
        UserName = "user",
        Password = "password"
    };

    using (IIgniteClient client = Ignition.StartClient(cfg))
    {
        var employeeCache1 = client.GetOrCreateCache&lt;int, Employee&gt;(
            new CacheClientConfiguration(EmployeeCacheName, typeof(Employee)));

        employeeCache1.Put(1, new Employee("Bilge Wilson", 12500, 1));
    }
}
</code></pre>

<p>To find to host IP, user name and client secret please check the below images.</p>

<p>Client Id and Secret
<a href="https://i.stack.imgur.com/79bab.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/79bab.png" alt="enter image description here"></a></p>

<p>IP Addresses
<a href="https://i.stack.imgur.com/oDBBL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oDBBL.png" alt="enter image description here"></a></p>

<p>Note: I don't need to set any IGNITE_HOME ana JAVA_HOME variable.</p>
