1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Kubernetes

Connected

Exercise

Deploy a Service

Communication among pods can be realized with a Kubernetes Service. You will now deploy service for an example Deployment.

Instructions 1/5

undefined XP
    1
    2
    3
    4
    5
  • Inspect the two Manifests using cat *.yml.
    • Note the label declarations in both the Deployment and the Service.
    • Note also the declaration of the ports to be used: the Pods will use port 1234 to communicate via the service, and the Service itself can be reached via the port 9876.