Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Nabeel Sulieman
Nabeel Sulieman

Posted on

     

Connecting Kubernetes to AWS ECR

I'm pleased to announce the release ofk8s-ecr-login-renew
(GitHub /Docker). It's a small tool written in Go that simplifies working with Amazon's Elastic Container Registry (ECR). It addresses the fact that ECR Docker login credentialsexpire every 12 hours.k8s-ecr-login-renew solves this by:

  • Fetching Docker login credentials from an AWS
  • Creating/Updating a Docker login secret in Kubernetes
  • Running as a cron job to prevent the Docker secret from expiring

The source code and Docker image are published here:

I'm also quite proud of theREADME and example code. My hope is that they will make getting started extremely easy.

Enjoy!

PS: Feedback is welcome and desired! Please also let me know if you found this tool useful (or if you had trouble using it).

Top comments(3)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
diestrin profile image
Diego Barahona
  • Joined

Nice tool. Would be nice to create a daemon that creates the cron job when a new namespace is created.

CollapseExpand
 
walidshaari profile image
Walid Shaari
Red Hat Openshift Platform Engineer. Kubernetes. CKA, CKAD. Community lead and advocate for containers, Kubernetes, cloud-native, and open source technologies. Pythonist.
  • Location
    MENA
  • Education
    Middlesex university
  • Work
    Senior DevOps engineer at Saudi Aramco
  • Joined

you mean a controller, in openshift there is a default project/namespace template that can capture this, wondering what is the best way to template this for namespace creations? could be a provisioning script/webhook or some sort of trigger.

CollapseExpand
 
nabsul profile image
Nabeel Sulieman
  • Joined

The code has been updated a while back to support multiple namespaces from the same single cron job.

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

  • Joined

More fromNabeel Sulieman

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp