I have a k8s cluster 1.12 deployed on GCP, with istio 1.2.2 installed.
I have a PHP application deployed, working fine, and I added the integration of Stackdriver, using the php logging client.
It works fine when
global.outboundTrafficPolicy.mode is set to
ALLOW_ANY so I manage to send correctly my logs to Stackdriver.
But if I switch
REGISTRY_ONLY, then it does not work anymore.
I added the following ServiceEntry, but even with that, it still doesn’t work.
apiVersion: networking.istio.io/v1alpha3 kind: ServiceEntry metadata: name: googleapis spec: hosts: - "googleapis. com" - "*.googleapis. com" - "google. com" - "*.google. com" ports: - number: 80 name: http protocol: HTTP - number: 443 name: https protocol: HTTPS
Anyone knows how to fix this?
I have tested with a different service, a simple one where I just do a curl on it, and it works as expected.
So I can imagine that GCP Stackdriver has something under the hood which is a calling a domain which I’m not able to figure out or something like that…
Note: I had to spaces in the hosts since I’m not allowed to add more than 2 links…