Skip to content
This repository was archived by the owner on Feb 28, 2026. It is now read-only.

fermayo/ecr-k8s-secret

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Kubernetes secret generator for AWS ECR credentials

Automatically creates a Kubernetes secret to pull images from AWS ECR using your AWS credentials

Usage

Requirements:

  • Configured aws CLI
  • Configured kubectl CLI

Run:

curl -LSs https://github.com/fermayo/ecr-k8s-secret/raw/master/gen-secret.sh | bash -

This will automatically create a secret called aws-ecr-credentials that you can use on your Pod definition:

spec:
  imagePullSecrets:
    - name: aws-ecr-credentials
  [...]

Remember that AWS ECR login credentials expire in 12 hours!

More info at https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/

About

Automatically creates a Kubernetes secret to pull images from AWS ECR using your AWS credentials

Topics

Resources

License

Stars

16 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages