<p>I'm trying to create a simple solution on my local server running Windows Server 2016 in which I want to deploy a dotnet core API with 5 replicas into k8s. I want to have an Ingress service set up such that it acts as a load balancer between the replicas of my app.</p>
<p>So far I got nothing.</p>
<p>Could anyone provide me a template that could accomplish that?</p>
<p>Thank you all in advance.</p>

Mehmet Can Erim
<p>Do you have a running Kubernetes cluster?</p>
<p>If not, then I would start from that. There are many ways to achieve that. If you are beginner you might want to try <a href="https://minikube.sigs.k8s.io/docs/start/" rel="nofollow noreferrer">minikube</a> or bootstrap your cluster with <a href="https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/" rel="nofollow noreferrer">kubeadm</a>.</p>
<p>Once you achieve that you will need to use <a href="https://kubernetes.io/docs/concepts/workloads/controllers/deployment/" rel="nofollow noreferrer">deployments</a>  to have your .net app running in Kubernetes.</p>
<p>To expose your deployment you use <a href="https://kubernetes.io/docs/concepts/services-networking/ingress/" rel="nofollow noreferrer">ingress</a>. In minikube this is very easy as you just have to enable it via <code>minikube addons</code>. In <code>kubeadm</code> you will have <a href="https://kubernetes.github.io/ingress-nginx/deploy/#bare-metal" rel="nofollow noreferrer">deploy</a> ingress controller that will support your ingress object.</p>
<p>There are many documents and information about how to start with deploying .NET application on the web, such as:</p>
<ul>
<li><p><a href="https://andrewlock.net/deploying-asp-net-core-applications-to-kubernetes-part-1-an-introduction-to-kubernetes/" rel="nofollow noreferrer">Andrew Lock | Net escapades</a></p>
</li>
<li><p><a href="https://medium.com/@bterkaly/running-asp-net-applications-in-kubernetes-a-detailed-step-by-step-approach-96c98f273d1a" rel="nofollow noreferrer">Running ASP.NET Applications in Kubernetes — A Detailed Step By Step
Approach</a></p>
</li>
</ul>
<p>Once you try something out please come back with some more specific issues. Stackoverflow is not that type of place for such a general questions.</p>
