Skip to content

Simple cronjob to fix the login issue to AWS ECR in whatever form of cluster, written in python

Notifications You must be signed in to change notification settings

qubusp/credomatorix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless api based login to ecr

This is a simple function based on kubeless and python. It gets the value of the ECR token from AWS and sends it to kubernetes. For security reasons all the credentials are given to the container as enviromental variables. This is intended more or less as a cronjob.

  1. How-to
export aws_access_key_id=<AWSACCESSKEYABCDEF>
export aws_secret_access_key=<YOUR+KEY+HERE>

Parse your k8s configuration as a secret as well.

  1. To do!!! Make it do more - force a docker login on the K8S cluster.

About

Simple cronjob to fix the login issue to AWS ECR in whatever form of cluster, written in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published