app-registry / appr-helm-plugin

Apache License 2.0
56 stars 15 forks source link

Helm registry plugin

Install the Helm Registry Plugin

First, Install the latest Helm release.

If you are an OSX user, quickstart with brew: brew install kubernetes-helm

Next download and install the registry plugin for Helm.

Install

$ mkdir -p ~/.helm/plugins/
$ cd ~/.helm/plugins/ && git clone https://github.com/app-registry/appr-helm-plugin.git registry

# On first use it downloads required assets

$ helm registry --help
Registry plugin assets do not exist, download them now !
downloading https://github.com/app-registry/appr-cli/releases/download/v0.4.1/cnr-linux-x64 ...

Upgrade

Upgrade the appr binary
$ helm registry list-plugin-versions
$ helm registry upgrade-plugin VERSION
downloading https://github.com/app-registry/appr-cli/releases/download/v0.4.1/cnr-linux-x64 ...
Upgrade the helm plugin
$ cd ~/.helm/plugins/registry
$ git pull origin master
$ helm registry upgrade-plugin
downloading https://github.com/app-registry/appr-cli/releases/download/v0.4.1/cnr-linux-x64 ...

Deploy Jenkins Using Helm from the Quay Registry

helm registry version quay.io

Output should be:

Api-version: {u'cnr-api': u'0.X.Y'}
Client-version: 0.X.Y

Install Jenkins

helm init
helm registry list quay.io
helm registry install quay.io/charts/jenkins

Create and Push Your Own Chart

First, create an account on https://quay.io and login to the CLI using the username and password

Set an environment for the username created at Quay to use through the rest of these instructions.

export USERNAME=philips

Login to Quay with the Helm registry plugin:

helm registry login -u $USERNAME quay.io

Create a new Helm chart, the default will create a sample nginx application:

helm create nginx

Push this new chart to Quay and then deploy it from Quay.

cd nginx
helm registry push --namespace $USERNAME quay.io
helm registry install quay.io/$USERNAME/nginx