Find, install and publish Cloud Native packages
Go to file
Sergio C. Arteaga c5b5d7252a
Return error when something goes wrong in migrate.sh (#147)
Signed-off-by: Sergio Castaño Arteaga <tegioz@icloud.com>
2020-03-03 14:26:52 +01:00
.github/workflows Reorganize database migrations (#146) 2020-03-03 14:00:31 +01:00
chart Reorganize database migrations (#146) 2020-03-03 14:00:31 +01:00
cmd Reorganize database migrations (#146) 2020-03-03 14:00:31 +01:00
configs Introduce user and organization concepts (#124) 2020-02-20 16:30:57 +01:00
database Return error when something goes wrong in migrate.sh (#147) 2020-03-03 14:26:52 +01:00
docs Refactor UI components hierarchy (#125) 2020-02-24 14:22:55 +01:00
internal Reorganize database migrations (#146) 2020-03-03 14:00:31 +01:00
scripts Include deployment in Github Actions CI workflow (#131) 2020-02-27 22:49:11 +01:00
web Do not use package id in urls (#144) 2020-03-03 10:27:46 +01:00
.dockerignore Prepare prototype for deployment (#20) 2020-01-21 10:08:52 +01:00
.gitattributes Improve chart tracker prototype (#16) 2020-01-17 16:20:01 +01:00
.gitignore Update project README.md (#59) 2020-01-31 18:20:51 +01:00
.golangci.yml Run golangci-lint with backend tests (#119) 2020-02-19 19:27:44 +01:00
.ignore Add backend prototype (#1) 2020-01-16 10:59:53 +01:00
LICENSE Add backend prototype (#1) 2020-01-16 10:59:53 +01:00
README.md Include deployment in Github Actions CI workflow (#131) 2020-02-27 22:49:11 +01:00
code-of-conduct.md Add backend prototype (#1) 2020-01-16 10:59:53 +01:00
go.mod Do not use package id in urls (#144) 2020-03-03 10:27:46 +01:00
go.sum Do not use package id in urls (#144) 2020-03-03 10:27:46 +01:00

README.md

Hub

CI

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)
  • 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