Welcome to the Linux Foundation Forum!

Office hours - Sep 5 (LFS258)



Today we clarified Lab exercise 9.1 steps 1 and 12. We focused on the role of the containerPort: setting of the Deployment definition manifest. As it is declared in step 1 with value 8080 it will incorrectly set the Endpoints of the Service object when the Deployment is exposed.
However, once the containerPort: value is updated with 80, exposing the Deployment again will set the Endpoints with the correct port values. Declaring the port value in the Deployment definition manifest does not modify or alter the behavior of the running container of the Pod replicas. Instead, it helps the Kubernetes framework to reuse relevant configuration data between loosely coupled resources, such as Pods and Services.



Upcoming Training