In this module, you'll gain an understanding of the microservice architectural pattern and the problems it solves. You'll see how you can use Docker to implement the microservice architectural pattern with an ASP.NET web API and Kubernetes as the container orchestrator. What is Microservice Architecture What is an image Dockerfile Push a microservice to Dockerhub Role of Containers Container Management and Orchestration dotnet run vs dotnet publish CI/CD Microservices Orchestration Docker compose Kubernetes What is a Cluster in Kubernetes What is a Pod in Kubernetes Containers and Pods Services in K8s Workloads - This is to k8s official documentation, can read about everything K8s there Connect to a kubernetes cluster Service Accounts Terraform What is a node in Kubernetes Kubectl Networking in Kubernetes Minikube *References https://learn.microsoft.com/en-us/training/paths/create-microservices-with-dotnet/?source=learn https://jamesdefabia.github.io/
In Kubernetes, a Service is a method for exposing a network application that is running as one or more Pods in your cluster. The set of Pods targeted by a Service is usually determined by a selector that you define. For example, consider a stateless image-processing backend which is running with 3 replicas. Those replicas are fungible—frontends do not care which backend they use. While the actual Pods that compose the backend set may change, the frontend clients should not need to be aware of that, nor should they need to keep track of the set of backends themselves. The Service abstraction enables this decoupling. Here is an example of a service of type NodePort which exposes a port(Nodeport) of a Node in the kubernetes cluster and also describes which port on the pod would the calls be forwarded to (targetPort) - *A nodePort is a temporary solution to expose the applications to the internet, usually done for testing purposes, other types of services e.g. ...