registry-creds icon indicating copy to clipboard operation
registry-creds copied to clipboard

Q: Enable only one registry

Open donifer opened this issue 4 years ago • 1 comments

Is there a way to only enable a single registry? I'm using Amazon's ECR and I don't need any of the others.

I get it working but I have extra secrets in all my namespaces that I don't use and according to the logs it's constantly trying to get creds from the other registries.

donifer avatar Apr 03 '20 18:04 donifer

@donifer did you have to do anything that wasn't documented to get this working? I'm also only using the ECR registry, but I can't seem to get minikube to work with this addon. I keep seeing this in the logs:

time="2022-10-03T21:39:44Z" level=info msg="------------------ [awsecr-cred] ------------------" 
time="2022-10-03T21:39:44Z" level=info msg="Getting secret; try #1 of 4" 
time="2022-10-03T21:40:24Z" level=info msg="RequestError: send request failed
caused by: Post https://ecr.us%E2%80%94west%E2%80%942.amazonaws.com/: dial tcp: lookup ecr.xn--uswest2-316ce.amazonaws.com on 10.96.0.10:53: read udp 10.244.120.71:38921->10.96.0.10:53: i/o timeout" 
time="2022-10-03T21:40:24Z" level=error msg="Error getting secret for provider awsecr-cred. Will try again after 5.000000 seconds. [Err: RequestError: send request failed
caused by: Post https://ecr.us%E2%80%94west%E2%80%942.amazonaws.com/: dial tcp: lookup ecr.xn--uswest2-316ce.amazonaws.com on 10.96.0.10:53: read udp 10.244.120.71:38921->10.96.0.10:53: i/o timeout]" 
time="2022-10-03T21:40:29Z" level=info msg="Getting secret; try #2 of 4" 
time="2022-10-03T21:41:10Z" level=info msg="RequestError: send request failed
caused by: Post https://ecr.us%E2%80%94west%E2%80%942.amazonaws.com/: dial tcp: lookup ecr.xn--uswest2-316ce.amazonaws.com on 10.96.0.10:53: read udp 10.244.120.71:34476->10.96.0.10:53: i/o timeout" 
time="2022-10-03T21:41:10Z" level=error msg="Error getting secret for provider awsecr-cred. Will try again after 5.000000 seconds. [Err: RequestError: send request failed
caused by: Post https://ecr.us%E2%80%94west%E2%80%942.amazonaws.com/: dial tcp: lookup ecr.xn--uswest2-316ce.amazonaws.com on 10.96.0.10:53: read udp 10.244.120.71:34476->10.96.0.10:53: i/o timeout]" 
time="2022-10-03T21:41:15Z" level=info msg="Getting secret; try #3 of 4" 
time="2022-10-03T21:41:55Z" level=info msg="RequestError: send request failed
caused by: Post https://ecr.us%E2%80%94west%E2%80%942.amazonaws.com/: dial tcp: lookup ecr.xn--uswest2-316ce.amazonaws.com on 10.96.0.10:53: read udp 10.244.120.71:39213->10.96.0.10:53: i/o timeout" 
time="2022-10-03T21:41:55Z" level=error msg="Error getting secret for provider awsecr-cred. Will try again after 5.000000 seconds. [Err: RequestError: send request failed
caused by: Post https://ecr.us%E2%80%94west%E2%80%942.amazonaws.com/: dial tcp: lookup ecr.xn--uswest2-316ce.amazonaws.com on 10.96.0.10:53: read udp 10.244.120.71:39213->10.96.0.10:53: i/o timeout]" 
time="2022-10-03T21:42:00Z" level=info msg="Getting secret; try #4 of 4" 
time="2022-10-03T21:42:40Z" level=info msg="RequestError: send request failed
caused by: Post https://ecr.us%E2%80%94west%E2%80%942.amazonaws.com/: dial tcp: lookup ecr.xn--uswest2-316ce.amazonaws.com on 10.96.0.10:53: read udp 10.244.120.71:43840->10.96.0.10:53: i/o timeout" 
time="2022-10-03T21:42:40Z" level=error msg="Error getting secret for provider awsecr-cred. Tried 4 time(s); will not try again until the next refresh cycle. [Err: RequestError: send request failed
caused by: Post https://ecr.us%E2%80%94west%E2%80%942.amazonaws.com/: dial tcp: lookup ecr.xn--uswest2-316ce.amazonaws.com on 10.96.0.10:53: read udp 10.244.120.71:43840->10.96.0.10:53: i/o timeout]" 

I have no idea what lookup it's doing at ecr.xn--uswest2-316ce.amazonaws.com - that host doesn't mean anything to me as my registry is <account ID>.dkr.ecr.us-west-2.amazonaws.co

asampal avatar Oct 03 '22 22:10 asampal