Last active
September 29, 2019 17:31
-
-
Save bbl/e89041485d1a0a5abce5086c75734ece to your computer and use it in GitHub Desktop.
Install Helm on Openshift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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