Skip to content

Commit

Permalink
Merge pull request #16064 from dobesv/patch-1
Browse files Browse the repository at this point in the history
site: registry-creds addon: Clarify when to use imagePullSecrets
  • Loading branch information
medyagh authored Sep 6, 2023
2 parents 3276aa7 + 51c5cd3 commit 1e8a1c5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions site/content/en/docs/tutorials/configuring_creds_for_aws_ecr.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ Enable the minikube registry-creds addon with the following command:
minikube addons enable registry-creds
```

The add-on will create secrets in each namespace other than `kube-system` that can be used for `imagePullSecrets` on a pod. It also
updates the `default` service account in each namespace to use these `imagePullSecrets`, which means any pod created outside
the `kube-system` namespace without an explicit service account other than `default` will use the image pull secrets automatically.

### Create a deployment that uses an image in AWS ECR

This tutorial will use a vanilla alpine image that has been already uploaded into a repository in AWS ECR.
Expand Down Expand Up @@ -122,11 +126,9 @@ In the above tutorial, we configured the `registry-creds` addon to refresh the c
- Check if you have a secret called `awsecr-cred` in the `default` namespace by running `kubectl get secrets`.
- Check if the image path is valid.
- Check if the registry-creds addon is enabled by using `minikube addons list`.

## Caveats

The service account token for the `default` service account in the `default` namespace is kept updated by the addon. If you create your deployment in a different namespace, the image pull will not work.
- Check if you have specified `imagePullSecrets` on the workload or related service account if you're using a custom service account.

## Related articles

- [registry-creds addon](https://github.com/kubernetes/minikube/tree/master/deploy/addons/registry-creds)
- [registry-creds controller source](https://github.com/upmc-enterprises/registry-creds#registry-credentials)

0 comments on commit 1e8a1c5

Please sign in to comment.