在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):hasura/gitkube开源软件地址(OpenSource Url):https://github.com/hasura/gitkube开源编程语言(OpenSource Language):Go 79.6%开源软件介绍(OpenSource Introduction):GitkubeGitkube is a tool for building and deploying Docker images on Kubernetes using After a simple initial setup, users can simply keep When should I use gitkube?
Features:
Getting startedGitkube will run on any Kubernetes vendor/distribution AS IS. In case you find any difficulties in the setup, please comment on #33 Install gitkubeUsing kubectlkubectl create -f https://raw.githubusercontent.com/hasura/gitkube/master/manifests/gitkube-setup.yaml
#expose gitkubed service
kubectl --namespace kube-system expose deployment gitkubed --type=LoadBalancer --name=gitkubed Using gitkube CLI (DEPRECATED)
Workflow
Local devUser should have a git repo with source code and a Dockerfile. User should also create a base K8s deployment for the application. Setting RemoteA Remote resource consists of 3 parts:
Here is a typical spec for a Remote: apiVersion: gitkube.sh/v1alpha1
kind: Remote
metadata:
name: sampleremote
namespace: default
spec:
# Insert ssh-keys for allowing users to git push
authorizedKeys:
- "ssh-rsa your-ssh-public-key"
# Provide registry details: https://github.com/hasura/gitkube/blob/master/docs/registry.md
registry:
url: "docker.io/user"
credentials:
secretRef: regsecret # Name of docker-registry secret
# Define deployment rules
deployments:
- name: www # Name of K8s deployment which is updated on git push
containers:
- name: www # Name of container in the deployment which is built during git push
path: example/www # Docker build context path in the git repo
dockerfile: example/www/Dockerfile # Location of Dockerfile for the source code Deploying applicationOnce a Remote is created, it gets a git remote URL which you can find in its $ kubectl get remote sampleremote -o yaml
...
status:
remoteUrl: ssh://[email protected]/~/git/default-sampleremote
remoteUrlDesc: "" Add the generated $ git remote add sampleremote ssh://[email protected]/~/git/default-sampleremote And finally, $ git push sampleremote master More examplesFollow this example repo for more workflows with gitkube. How it worksGitkube has three components:
High-level architectureContributingGitkube is an open source project licensed under Apache License 2.0 Contributions are welcome. Community and Support
MaintainersThis project has come out of the work at hasura.io. Current maintainers @Tirumarai, @shahidh_k. Follow @gitkube to stay updated. Gitkube logo concept and design by Samudra Gupta. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论