As you may know I’ve been collaborating with Dapr and I’ve learned that one of the things it enables you to do is to collect traces with the use of the OpenTelemetry Collector and push the events to Azure Application Insights. After some reading I went and check if I could also write my ASP.NET Core applications to log...
Let’s start: Create a folder for your new project Open a command prompt an run: 1mkdir kuberenetes.scale Create the project 1cd kuberenetes.scale 2dotnet new api Add the references to KubernetesClient 1dotnet add package KubernetesClient -v 1.5.18 2dotnet restore Create a PodsController.cs with the following code...
You start developing an ASP.NET Core application to run it in Kubernetes and suddenly you find yourself creating a docker file, building an image, pushing the image to a registry, creating both a deployment and a service definition for Kubernetes and you wonder if there is a tool out there to help you streamline the...
On April I wrote a post about Using Docker Multi Stage Builds to build an ASP.NET Core Echo Server and these days while preparing a talk, on CI/CD and kubernetes, I started to play with the simple sample I wrote back then. Soon enough I noticed that with each docker build command I issued the dependencies for the...
Today I’ll show you how to create a simple Echo Server with ASP.NET Core and then a Docker Image using multi-stage build: Create the Application Open a PowerShell promt and run: 1mkdir echoserver 2cd echoserver 3dotnet new console 4dotnet add package Microsoft.AspNetCore -v 2.0.2 Replace the contents of Program.cs...