On further inspection, I had an environment variable NO_GCE_CHECK set to true in my Dockerfile which I overlooked. Setting this variable prevents the service from connecting to the metadata server.
NO_GCE_CHECK
true