/kube-learning

Kubernetes playground

Primary LanguageC#

My idea is to build step by step a complete complex solution.

Before start

Step 1

Having an ASP.NET Core service with 3 replicas deployed in kubernetes and load balanced using kubernetes load balancer.

  • Deploy the service: kubectl apply -f step1/aspnetcoreservice.yaml
  • To get service ip address: kubectl get service aspnetcoreservice, external ip address will not be attributed because we are in local kubernetes.
  • To get access to the service: minikube service aspnetcoreservice, minikube will create a tunnel to get access to the service from the host machine.

Step 2

Add an ASP.NET Core GRPC Service and make the first service talk to it using ASP.NET Core hosted services.

  • Deploy the service: kubectl apply -f step2/aspnetcoregrpcservice.yaml

Step 3