Posts

Showing posts from 2018

Debugging .net core application running in Kubernetes cluster, from visual studio 2017.

Image
Continuing my exploration of containers , i started using Kubernetes(K8) as an orchestrator for container applications. If you want to learn more about K8 you can read here . On exploration i found similar issue which i faced with docker, there was almost no content available on the approach of how to debug your application running in K8 cluster. I understand that generally you should use logs and most of the issues related to application should have been identified during development of application. Ideally that is the use of docker , docker image just runs everywhere . But sometime Murphy may strike , and things can go wrong , to help in those situation this article is written. Following are the tools used by me for exploration Kubernetes as a service running on stratoscale . Docker for windows Visual studio 2017 version 15.3.4 with  .net core 2.0 sdk  on windows 10 machine. Kubectl I am going to use same sample application and docker which i used in th...

Debugging .net core application running in docker container, from visual studio 2017, in a remote linux machine.

Image
Off late i have been doing a lot of exploration of docker technology,  though a lot has been written about docker technology but about one topic on which i could not found much detail was Debugging in docker containers. Following are the tools which i am using for exploration- Visual studio 2017 version 15.3.4 with  .net core 2.0  sdk   on windows 10 machine Docker for windows. Ubuntu 14.04 machine with docker package installed. Visual studio 2017 magic - Visual studio has done a great work to add support for docker in your project. its just few simple clicks which perform all the work and you will not even realize that you are debugging a docker container or normal exe, more details can be found here . above experience is good for local development but what if your docker container is running in a production linux machine with no visual studio installed in that , how do you debug using visual studio in that scenario. Debugging ...