Signed-off-by: Sergio Castaño Arteaga <tegioz@icloud.com> |
||
|---|---|---|
| .github/workflows | ||
| chart | ||
| cmd | ||
| configs | ||
| database | ||
| docs | ||
| internal | ||
| scripts | ||
| web | ||
| .dockerignore | ||
| .gitattributes | ||
| .gitignore | ||
| .golangci.yml | ||
| .ignore | ||
| LICENSE | ||
| README.md | ||
| code-of-conduct.md | ||
| go.mod | ||
| go.sum | ||
README.md
Hub
Hub is a web-based application that enables finding, installing and publishing Kubernetes packages.
![]() |
![]() |
![]() |
Getting started
The easiest way to try Hub in your Kubernetes cluster is deploying the Helm chart provided. Let's see how this can be done using Minikube locally.
Prerequisites
Before proceeding, please make sure your system meets the following requirements:
- Working Minikube environment
- Nginx Ingress controller enabled (
minikube addons enable ingress)
- Nginx Ingress controller enabled (
- Helm installed
Build docker images
At the moment, the Hub Docker images haven't been published yet to any Docker registry, so you need to build them locally to make them available to your local cluster.
$ git clone https://github.com/cncf/hub && cd hub
$ eval $(minikube docker-env)
$ scripts/docker-build.sh
This may take a few minutes.
Install chart
Once all images have been built, you can proceed with the chart installation.
$ helm dep update chart
$ helm install hub chart
As soon as all pods are up and running, you can access the Hub by visiting the address specified in your Ingress object in your browser (http://192.168.64.18 in the case shown below).
$ kubectl get ingress
NAME HOSTS ADDRESS PORTS AGE
hub * 192.168.64.18 80 6s
Populating packages
The chart installs a cronjob in charge of launching periodically (every 30m) a process called chart-tracker which indexes charts. If you don't want to wait until it's triggered by the cronjob, you can create a job manually using the following command:
$ kubectl create job initial-chart-tracker-job --from=cronjob/chart-tracker
Uninstall
Once you are done, you can clean up all Kubernetes resources created by uninstalling the chart:
$ helm uninstall hub


