Skip to content

Enabling .NET diagnostic tools in containers deployed to Kubernetes.

License

Notifications You must be signed in to change notification settings

dzrhythm/k8s-dotnet-diag

Repository files navigation

k8s-dotnet-diag

This repo demonstrates using .NET diagnostic tools such as dotnet-dump from a conditionally enabled sidecar container in pods deployed to Kubernetes. This approach allows us to:

  • Run application more securely under normal circumstances (read-only root file system, no additional tools installed that increase attack surface), and
  • Enable diagnostics and tools on demand when needed.

This repo contains:

Prerequisites

Running the Demo

To setup and run the demo, follow along the steps in the setup.sh script. This will walk through:

  • Creating the ACR and AKS cluster in Azure.
  • Building and pushing the container images.
  • Deploying the application via Helm.
  • Running a dotnet-dump to get a dump on our application container from a sidecar container.

About

Enabling .NET diagnostic tools in containers deployed to Kubernetes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published