Skip to content
Advertisement

How to deploy .net core in Kubernetes?

Recently I started study Kubernetes. And I want to deploy .net core in Kubernetes. How to deploy .net core in Kubernetes ? Maybe there is a simple example ?

Advertisement

Answer

There are lots of resources on the web for the specific mechanics that I will add at the bottom. This is a very broad question and probably not a correct type of question for SO. However, I am going to try to point you in a good direction.

The first step to deploying a .NET Core application to Kubernetes is to understand how to create a container that runs your .NET Core app. This will typically be using Docker.

Once you have a docker container built using a linux image, you will need to publish that image to a container registry so you can define which registry to pull your image from in your Kubernetes yaml. I would recommend you use something like minikube to do it locally.

https://docs.docker.com/engine/examples/dotnetcore/

https://learn.microsoft.com/en-us/dotnet/architecture/containerized-lifecycle/design-develop-containerized-apps/build-aspnet-core-applications-linux-containers-aks-kubernetes

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement