Kubernetes

What are important steps in defining/adding a Service?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

  1. Making sure that targetPort of the Service is matching the containerPort of the Pod
  2. Making sure that selector matches at least one of the Pod's labels