Question on external web-server

Lab- CKA Mock Exam 6 - KodeKloud
Q. We have an external webserver running on student-node which is exposed at port 9999. We have created a service called external-webserver-cka03-svcn that can connect to our local webserver from within the kubernetes cluster3 but at the moment it is not working as expected.
Fix the issue so that other pods within cluster3 can use external-webserver-cka03-svcn service to access the webserver.
→ i have solved this but have few confusion. I created endpoint using below template:

apiVersion: v1
kind: Endpoints
metadata:
  name: external-webserver-cka03-svcn
subsets:
  - addresses:
      - ip: $IP_ADDR
    ports:
      - port: 9999

and $IP_ADDR is ip address of eth0 interface. So is eth0 interface same as student-node?
Also the service is of clusterIP so how are we able to access external web-server??
please clarify my doubt.

Hi @uzmashafi061
I have created a detailed explanation here

1 Like

Thanks for the excellent explanation. It now clear.