Question
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.
As per the question no where it is mentioned that service external-webserver-cka03-svcn is running on kube-public namespace as it is not running in default namespace.
Also as per the solution,we need to create endpoint manually
apiVersion: v1
kind: Endpoints
metadata:
# Ensure that the name matches that of the Service
name: external-webserver-cka03-svcn
namespace: kube-public
subsets:
- addresses:
- ip: <IP-ADDRESS>
ports:
- port: 9999
Cant we delete the service and recreate by using
k expose pod
I am unable to find any k8s documentation regarding Kind:EndPoint and as lso it was not covered under the tutorial as well
Please suggest.