Skip to content

Instantly share code, notes, and snippets.

@denzhel
Created May 1, 2021 19:41
Show Gist options
  • Select an option

  • Save denzhel/16bbc84a2cd9ad1ba9a9a4eef450dc7a to your computer and use it in GitHub Desktop.

Select an option

Save denzhel/16bbc84a2cd9ad1ba9a9a4eef450dc7a to your computer and use it in GitHub Desktop.
Pull telepresence from private registry

If you get this error while trying to launch Telepresence on your K8s env:

Failed to pull image "datawire/telepresence-k8s:0.109": 
rpc error: code = Unknown desc = Error response from daemon: 
toomanyrequests: You have reached your pull rate limit. 
You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit

Upload it to your registry, for example AWS ECR:

docker pull datawire/telepresence-k8s:0.109-16-g601cad65
docker tag eaea476019a3 <AccountNumber>.dkr.ecr.us-east-1.amazonaws.com/<FolderName>/telepresence-k8s:0.109
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin <AccountNumber>.dkr.ecr.us-east-1.amazonaws.com
docker push <AccountNumber>.dkr.ecr.us-east-1.amazonaws.com/<FolderName>/telepresence-k8s:0.109

Launch telepresence with an env variable:

export TELEPRESENCE_REGISTRY=<AccountNumber>.dkr.ecr.us-east-1.amazonaws.com/<FolderName>
# Telepresnece will fill in telepresence-k8s:<Version> automatically
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment