File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
sdk/identity/identity/src/credentials/managedIdentityCredential Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,11 @@ export const imdsMsi: MSI = {
9090 // not having a "Metadata" header should cause an error to be
9191 // returned quickly from the endpoint, proving its availability.
9292 const webResource = identityClient . createWebResource ( request ) ;
93- webResource . timeout = updatedOptions ?. requestOptions ?. timeout || 500 ;
93+
94+ // In Kubernetes pods, node-fetch (used by core-http) takes longer than 2 seconds to begin sending the network request,
95+ // So smaller timeouts will cause this credential to be immediately aborted.
96+ // This won't be a problem once we move Identity to core-rest-pipeline.
97+ webResource . timeout = updatedOptions ?. requestOptions ?. timeout || 3000 ;
9498
9599 try {
96100 logger . info ( `Pinging IMDS endpoint` ) ;
You can’t perform that action at this time.
0 commit comments