Giter VIP home page Giter VIP logo

gitkube-example's Introduction

gitkube cli

Use regular git commands (git push workflow) for k8s deployments

first blood

  • install gitkube binaries by downloading it and putting into your bin directory...
  • when Dockerfile and k8s.yaml manifast will be created, run gitkube install command
  • generate gitkube remote.yaml manifest by using gitkube remote generate -f mapp-remote.yaml command
  • use custom configuration for mapp remote for docker registry and configure your username / password
  • create deployment first (even if docker images hasn't been built): kubectl create -f k8s.yaml
  • create remote by using gitkube remote create -f mapp-remote.yaml command
  • copy remote url as export GIT_REMOTE_URL=ssh://default-mapp@localhost/~/git/default-mapp and create git remote add mapp $GIT_REMOTE_URL command
  • now do deployment just with regular git push mapp master command!
  • ...open http://127.0.0.1:8080...

bug / cr

  • next time, fix some bug-fix or implement change-request and commit it with some usefull git message
  • finally redeploy new software by using regulat git push mapp master command again...

cleanup

kubectl delete -f k8s.yaml
kubectl delete secret regsecret      -n default
kubectl delete secret mapp-regsecret -n default
git remote rm mapp
gitkube remote delete mapp
gitkube uninstall

re-do after clean / clone

kubectl create secret docker-registry regsecret --docker-server=https://index.docker.io/v1/ \
  --docker-username=daggerok [email protected] \
  --docker-password=...

kubectl create -f k8s.yaml
gitkube remote create -f mapp-remote.yaml
git remote add mapp ssh://default-mapp@localhost/~/git/default-mapp
git push mapp master
http :8080

resources

gitkube-example's People

Contributors

daggerok avatar

Watchers

 avatar  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.