Skip to content

Instantly share code, notes, and snippets.

@onpaws
Last active September 14, 2020 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save onpaws/e28f1cdc666795f062a16fa2e39192fe to your computer and use it in GitHub Desktop.
Save onpaws/e28f1cdc666795f062a16fa2e39192fe to your computer and use it in GitHub Desktop.
Cheatsheet for Helm charts on Azure Container Registry

Hosting Helm charts inside Azure Container Registries

# install Helm
brew install helm

# Package your chart (the directory containing Chart.yaml) into a .tgz file
$ helm package mychart/
Successfully packaged chart and saved it to: /Users/admin/projects/helm/chart-0.1.0.tgz

# upload to Azure Container Registry. Needed: Container Registry name
az acr helm push -n <ACR NAME> <PATH OF DOWNLOADED CHART.TGZ> --force

Set up the Azure hosted repo with local Helm

helm repo add mycr --username mycr --password MyPassword https://mycr.azurecr.io/helm/v1/repo/

Set it up inside Rancher

Name: (whatever you want, e.g. org name or team name)

Catalog URL: https://.azurecr.io/helm/v1/repo/

Use private catalog: yes

Username: service principal name (alternatively, ACR username)

Password: service principal password (alternatively, ACR password)

Helm version: Helm v2

@onpaws
Copy link
Author

onpaws commented Sep 14, 2020

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment