Git Product home page Git Product logo

helm-cheat-sheet's Introduction

Installing Helm

Install Helm client

helm init --client-only

Install Helm client and Tiller to the current cluster with RBAC

# rbac-config.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
  name: tiller
  namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
  name: tiller
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-admin
subjects:
  - kind: ServiceAccount
    name: tiller
    namespace: kube-system
kubectl create -f rbac-config.yaml
helm init --service-account tiller

Install and upgrade Tiller to the current cluster

helm init --upgrade

Check the version of Helm installed

helm version

Helm Repositories

List Helm repositories

helm repo list

Update list of Helm charts from repositories

helm repo update

Searching Helm Charts

List all installed charts

helm search

Search for a chart

helm search foo

Showing Installed Helm Charts

List all installed Helm charts

helm ls

List all deleted Helm charts

helm ls --deleted

List installed and deleted Helm charts

helm ls --all

Installing/Deleting Helm charts

Inspect the variables in a chart

helm inspect values stable/mysql

Install a Helm chart

helm install --name foo stable/mysql
helm install --name path/to/foo
helm install --name foo bar-1.2.3.tgz
helm install --name foo https://example.com/charts/bar-1.2.3.tgz

Install a Helm chart and override variables

helm install --name foo --values config.yaml --timeout 300 --wait stable/mysql

Show status of Helm chart being installed

helm status foo

Delete a Helm chart

helm delete --purge foo

Upgrading Helm Charts

Return the variables for a release

helm get values foo

Upgrade the chart or variables in a release

helm upgrade --values config.yaml foo stable/mysql

List release numbers

helm history foo

Rollback to a previous release number

helm rollback foo 1

Creating Helm Charts

Create a blank chart

helm create foo

Lint the chart

helm lint foo

Package the chart into foo.tgz

helm package foo

Install chart dependencies

helm dependency update

Chart Folder Structure

wordpress/
  Chart.yaml          # A YAML file containing information about the chart
  LICENSE             # OPTIONAL: A plain text file containing the license for the chart
  README.md           # OPTIONAL: A human-readable README file
  requirements.yaml   # OPTIONAL: A YAML file listing dependencies for the chart
  values.yaml         # The default configuration values for this chart
  charts/             # A directory containing any charts upon which this chart depends.
  templates/          # A directory of templates that, when combined with values,
                      # will generate valid Kubernetes manifest files.
  templates/NOTES.txt # OPTIONAL: A plain text file containing short usage notes

Azure Helm

Add an Azure Helm repo

az acr helm repo add --name foo

helm-cheat-sheet's People

Contributors

rehansaeed avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.