You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GoogleCloudPropertyDefiner correctly identifies it's running in GCP every time resulting in google_cloud_logging being set consistently.
Actual Behaviour
GoogleCloudPropertyDefiner intermittently fails to detect it's running in GCP when running in GKE with Istio/ASM. I believe this is due to the Istio sidecar having a small delay being bound into the mesh (see kubernetes/kubernetes#65502) which means all requests fail until it is ready.
Steps To Reproduce
Deploy service using GKE with Istio/ASM with Dynamic appender selection enabled,
Restart Pod Several times.
Observe that not all of the Pods will have JSON formatting.
Environment Information
GKE
Istio or Anthos Service Mesh
Example Application
No response
Version
micronaut-gcp v3.5.0
The text was updated successfully, but these errors were encountered:
@dansiviter If I understood this correctly, the problem is that we detect gcp environment by trying to call the metadata endpoint of gcp, and the istio side car is returning an error (4xx/5xx) and then the request fails?
We could probably fix this by adding some sort of retry mechanism, having the default to fail immediately (to avoid causing latency startup on the service), and make it configurable. I'm not sure how long would take the proxy to be ready.
Expected Behavior
GoogleCloudPropertyDefiner
correctly identifies it's running in GCP every time resulting ingoogle_cloud_logging
being set consistently.Actual Behaviour
GoogleCloudPropertyDefiner
intermittently fails to detect it's running in GCP when running in GKE with Istio/ASM. I believe this is due to the Istio sidecar having a small delay being bound into the mesh (see kubernetes/kubernetes#65502) which means all requests fail until it is ready.Steps To Reproduce
Environment Information
Example Application
No response
Version
micronaut-gcp v3.5.0
The text was updated successfully, but these errors were encountered: