Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daggerok/gitkube-example
Use regular git commands (git push workflow) for k8s deployments
https://github.com/daggerok/gitkube-example
docker-for-mac docker-for-windows gitkube k8s kubernetes-docker
Last synced: 16 days ago
JSON representation
Use regular git commands (git push workflow) for k8s deployments
- Host: GitHub
- URL: https://github.com/daggerok/gitkube-example
- Owner: daggerok
- Created: 2019-11-16T03:18:38.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-16T17:33:59.000Z (about 5 years ago)
- Last Synced: 2024-11-11T15:39:55.685Z (3 months ago)
- Topics: docker-for-mac, docker-for-windows, gitkube, k8s, kubernetes-docker
- Language: HTML
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```bash
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
```bash
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
* https://github.com/hasura/gitkube/blob/master/docs/registry.md
* https://github.com/hasura/gitkube
* https://gitkube.sh/
* https://www.youtube.com/watch?v=l9h03j0NDEg
* https://www.youtube.com/watch?v=ECB9vLvBXog
* https://www.youtube.com/watch?v=eRimsG6pDH8