![](https://i0.wp.com/referbruv.com/wp-content/uploads/2023/02/How-to-deploy-.NET-6-Web-API-to-Kubernetes-1.png?fit=768%2C384&ssl=1)
How to deploy ASP.NET Core Web API to Kubernetes
In this article, we'll discuss about Kubernetes, a popular container orchestration engine and learn how we can deploy an ASP.NET Core Web API to it.
To view logs for running containers, we can use LOG command.
> docker logs --follow
The --follow flag will continue streaming the new output from the container's STDOUT and STDERR onto the terminal.
docker restart policies dictate how a container should behave when it is shutted down by some factor.
There are four restart-policies: