Host your ASP.NET Core 2.2 Web App with IIS (in-process and out-of-process hosting model) and deploy to Docker Windows Containers

One of the new features of ASP.NET Core 2.2 is support for hosting ASP.NET Core Web App with IIS using in-process or out-of-process hosting model. This article will cover steps needed to

  • Host ASP.NET Core 2.2 Web API with IIS using in-process hosting model
  • Host ASP.NET Core 2.2 Web API with IIS using out-of-process hosting model
  • Host ASP.NET Core 2.2 Web API in Docker Windows containers (with IIS)

In ASP.NET Core 2.2, a new ASP.NET Core Module (AspNetCoreModuleV2) has been introduced which is a native IIS module that plugs into the IIS pipeline and provides in-process or out-of-process hosting capabilities. AspNetCoreModule used to be the module in previous version.

Continue reading “Host your ASP.NET Core 2.2 Web App with IIS (in-process and out-of-process hosting model) and deploy to Docker Windows Containers”

Azure Kubernetes Service/Kubernetes Tip: View POD/Container logs using kubectl

When developing and troubleshooting components deployed in Kubernetes cluster, POD logs can be viewed by running command kubectl logs {POD_NAME}

Adding -f argument will let you view stream and command is kubectl logs {POD_NAME} -f

Lastly, --previous argument will let you view logs for a previous instantiation and command is  kubectl logs {POD_NAME} --previous

The command arguments listed above are valid for viewing logs for a specific container within a POD however you will need to specify container name by adding -c argument and command is kubectl logs {POD_NAME} -c {CONTAINER_NAME}

Hope this tip helps you in troubleshooting components deployed in Kubernetes cluster.