AWS
Setting up an ECR registry
Follow this guide to create a private ECR registry on AWS.
Then follow this guide to create an image pull secret so that your cluster can pull images from your registry.
Make note of the ImagePullSecret name and namespace.
Enabling in-cluster building
For AWS ECR (Elastic Container Registry), you need to enable the ECR credential helper once for the repository by adding an imagePullSecret
for you ECR repository.
First create a config.json
somewhere with the following contents (<aws_account_id>
and <region>
are placeholders that you need to replace for your repo):
Next create the imagePullSecret in your cluster (feel free to replace the default namespace, just make sure it's correctly referenced in the config below):
Make note of the ImagePullSecret name and namespace.
Configuring Access
To grant your service account the right permission to push to ECR, add this policy to each of the repositories in the container registry that you want to use with in-cluster building:
To grant developers permission to push and pull directly from a repository, see the AWS documentation.
Last updated