apiVersion: v1
kind: Service
metadata:
name: my-service
spec:
selector:
app: MyApp
ports:
- protocol: TCP
port: 80
targetPort: 9376
clusterIP: 10.0.171.239
loadBalancerIP: 78.11.24.19
type: LoadBalancer
status:
loadBalancer:
ingress:
- ip: 146.148.47.155
I am trying to understand the loadbalancer and ingress here.
Here, by which ip address the service would be accessible? Requests from outside of the cluster will hit at 78.11.24.19 or 146.148.47.155?
It has been said in official documentation
information about the provisioned balancer is published in the Service’s .status.loadBalancer
field.
Cannot understand this part.
Don’t ingress and loadbalancer both manage external access to the services?