I have an app running in a kubernetes engine cluster and communicating to elasticsearch in compute engine. The way they communicate is set up like this: a service in kubernetes engine that points to an endpoints and this enpoints has the ip and port of elasticsearch in compute engine. The problem is, the enpoints keeps on reseting to every after around 5 or more hours. So I have to re-apply the endpoints configuration every now and then. Been trying to find out what causes it to reset to . So far my effort has been futile. Any help and thoughts are greatly appreciated...
I was able to resolve this by explicitly declaring the clusterIP of the service that is pointing to this endpoint.