Skip to content
yfxiePublic

About

Deploy to Kubernetes with krane, the simple way: one config file, one command to build, push and deploy.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

kran

Gem Version CI Coverage Status License

Deploy to Kubernetes with krane, the simple way. One command builds the image, pushes it, renders the krane templates and deploys them. A few more commands cover the daily work: logs, exec, details, audit.

Install

gem install kran

Kran drives docker, krane and kubectl, and ejson when secrets come from krane's secrets.ejson. None of them is a gem dependency. kran version shows which ones are found.

Use

kran init                 # writes config/kran.yml
kran deploy --dry-run     # prints every command it would run
kran deploy               # docker login, docker build --push, krane render | krane deploy
kran deploy -P            # skip the build and push
kran logs -f
kran exec bin/rails db:migrate
kran shell                # alias for: exec --interactive bash
kran console              # alias for: exec --interactive bin/rails console

Every command reads config/kran.yml. -d staging layers config/kran.staging.yml on top of it.

If you have used kamal, this will feel just as simple: familiar command names, one config file, one command to deploy.

Documentation: https://kran.bincode.tw

Develop

bundle install
bundle exec rake test
bundle exec rubocop

License

MIT

About

Deploy to Kubernetes with krane, the simple way: one config file, one command to build, push and deploy.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages