Kubernetes: Microservices

created:

updated:

tags: kubernetes

How can we use Kubernetes for microservices architecture?

  1. Deploy containers == Deploy pods (or replica sets or deployments)
  • Ideally, we would want to deploy deployments instead of pods because deployments will enable us to scale pods easily.
  1. Enable connectivity between the containers == Create services (ClusterIP)
  • The right way to connect between pods are to use Kubernetes services for the pods because the IP addresses of pods can change whenever pods get destroyed and re-created.
  • Kubernetes service can expose applications available to other applications or users.
  1. Enable external access == Create services (NodePort)

References