Giter Site home page Giter Site logo

zagno / k8ecr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from isotoma/k8ecr

0.0 2.0 0.0 42 KB

Utility for managing ecr repositories with kubernetes

License: Apache License 2.0

Dockerfile 2.61% Makefile 0.48% Python 2.41% Shell 1.74% Go 87.52% Smarty 5.25%

k8ecr's Introduction

k8ecr

Utility for managing ecr repositories with kubernetes

Building

If you don't already have dep installed go get it from the releases page:

https://github.com/golang/dep/releases

And put it in your path.

Then:

dep ensure

To install the dependencies into the vendor/ folder.

Concepts

k8ecr provides tooling to make it easier to use docker images from ECR repositories in your Kubernetes clusters created by kops. In particular it understands the link between an AWS account and role (i.e. an AWS profile) and a Kubernetes context.

It can:

  • create ECR repositories and grant appropriate permissions to your cluster roles.
  • push images to ECR repositories directly.
  • issue appropriate kubectl set image commands to update deployments.

Usage

k8ecr config PROFILE
k8ecr create REPOSITORY
k8ecr push REPOSITORY VERSION...
k8ecr deploy

Configuration

k8ecr config PROFILE

This will link the current kubectl context to the specified AWS profile.

This writes to the YAML config file ~/.k8ecr

From now on the current kubectl context will be used to determine which AWS profile to use for AWS API calls.

Creating repositories

k8ecr create REPOSITORY

This will create an ECR repository in the current profile, and grant:

ecr:GetDownloadUrlForLayer
ecr:BatchGetImage
ecr:BatchCheckLayerAvailability

To the IAM master and nodes role for the current cluster.

Pushing images

k8ecr push REPOSITORY VERSION...

This will log in to ECR, then push images to the remote repository with the specified versions. For example:

k8ecr push myimage 1.0.0 latest

Will push 1.0.0 and latest tags.

Deploying

k8ecr deploy [NAMESPACE]

This will compare all deployments and the must recent version numbers available and present options for deploying images.

All possible upgrade options for the specified namespace are shown.

k8ecr's People

Contributors

winjer avatar plumdog avatar cliveza avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.