I found a cleaner fix, override the GCE cloud-init metadata_url as below. Since it's now an IP address and not a hostname, it avoids the failing DNS lookups.
datasource:
GCE:
metadata_url: http://169.254.169.254/computeMetadata/v1/
I found a cleaner fix, override the GCE cloud-init metadata_url as below. Since it's now an IP address and not a hostname, it avoids the failing DNS lookups.
datasource:
GCE:
metadata_url: http://169.254.169.254/computeMetadata/v1/