I am learning Kubernetes on GCP
So far i have two deployments front end and backend as separate containers through separate deployment yaml files.
I am exposing them through service yaml files on port 8080 and 8081 respectively.
I can trigger the endpoints separately , however what should be the hostname/ ip address in the ajax call ?
When I do kubectl get services. I get two different services with their own cluster ip and external ip , but external ip changes as I delete the service.
how can i use locahost:8081?querysearch in my ajax call