Skip to content

Instantly share code, notes, and snippets.

@bbl
Last active September 29, 2019 17:31
Show Gist options
  • Save bbl/e89041485d1a0a5abce5086c75734ece to your computer and use it in GitHub Desktop.
Save bbl/e89041485d1a0a5abce5086c75734ece to your computer and use it in GitHub Desktop.
Install Helm on Openshift
#!/usr/bin/env bash
set -euo pipefail
: ${HELM_VERSION:?"Need to set HELM_VERSION non-empty"}
: "${TILLER_NAMESPACE:=tiller}"
oc new-project ${TILLER_NAMESPACE}
oc project ${TILLER_NAMESPACE}
curl -s https://storage.googleapis.com/kubernetes-helm/helm-${HELM_VERSION}-linux-amd64.tar.gz | tar xz
cd linux-amd64
./helm init --client-only
oc process -f https://github.com/openshift/origin/raw/master/examples/helm/tiller-template.yaml -p TILLER_NAMESPACE="${TILLER_NAMESPACE}" -p HELM_VERSION=${HELM_VERSION}| oc create -f -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment