Posts

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 ...

Self Contained Deployment of .Net core Console Application on Ubuntu

Off late i am involved in migrating my organization applications from .net to .net core , so that our application can be deployed in cross platform scenarios  and offcourse focus is on towards migration to cloud infrastructure. Just in case if you have not got chance to read about .net core, this is the best place to get a quick idea about same. Now area where i am going to focus in this article is how to use self contained deployment feature from .net core to run your dot net core application in Linux. Self contained deployment is a model where you do not need dot net core platfrom or runtime to be installed in target OS you can just copy your application in OS and start using it. Isnt that cool ☺ If you want to learn more about .net core deployment please refer this article. Some Prerequisites - 1. Create a dot net core application with visual studio  or dotnet cli 2. obviously have an Ubuntu system ☺. Till now all good but problem, where i got stuck was -...

A Day in Amritsar, Punjab

Image
In the summer of 2017 i visited my hometown (Kurukshetra, Haryana) for a family function , and there since i had some time i planned for a day trip to Amritsar, Punjab . It was always in the back of my mind to visit this Holy place , due to its emphasis on India history , the divines of golden temple and of course the tasty food it offers. We started the day  very early in the morning where we caught a train from ambala to amritsar at 2 Am  in morning(DDR - Amritsar) express, the train took around 6 hours, more than usual time of 5 hours due to longer delays on stations and we reached Amritsar at 8 AM. From Railway station there is a free bus service to Golden Temple, here is a tip to travelers hop on to that bus to save some money, and that bus directly takes you to golden temple premises. After reaching golden we were looking for a shower, well you will find a lot of middle men to take you to there commission earning hotel, But again there is a tip t...