Skip to content
This repository has been archived by the owner on Dec 23, 2023. It is now read-only.

Commit

Permalink
Update static GCP metadata URL
Browse files Browse the repository at this point in the history
When running Istio on Google Kubernetes Enginge (GKE), the Envoy sidecar
proxy will fail to route any requests made to the metadata server via
the `metadata` hostname (requests will 404). Requests made to the fully
qualified `metadata.google.internal` hostname can be routed.

Update the constant for the metadata host in `GcpMetadataConfig` to use
the FQDN.
  • Loading branch information
nicktrav committed Apr 21, 2019
1 parent c35bc41 commit 437992b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
*/
final class GcpMetadataConfig {

private static final String METADATA_URL = "http://metadata/computeMetadata/v1/";
private static final String METADATA_URL = "http://metadata.google.internal/computeMetadata/v1/";

private GcpMetadataConfig() {}

Expand Down

0 comments on commit 437992b

Please sign in to comment.