Skip to content

Instantly share code, notes, and snippets.

@tonejito
Last active February 19, 2019 00:41
Show Gist options
  • Save tonejito/e5f09bbc39ec81ddd6a2395be3518018 to your computer and use it in GitHub Desktop.
Save tonejito/e5f09bbc39ec81ddd6a2395be3518018 to your computer and use it in GitHub Desktop.
Installing helm on OpenSUSE Kubic kubeadm host

Installing https://helm.sh/ for https://gitlab.org/ integration with a LOCAL http://kubernetes.io/ cluster (or standalone host) powered by a OpenSUSE Kubic #kubeadm host https://kubic.opensuse.org/

  • Create installation directory
# mkdir -vp /opt/helm
mkdir: created directory '/opt/helm'
  • Update ${PATH} to add helm
# echo ${PATH} | grep /opt/helm &>/dev/null || printf '\n# %s\n%s\n' 'helm.sh' 'PATH="$PATH:/opt/helm"' >> ~/.profile && source ~/.profile
  • Download helm installation script
# curl -s 'https://raw.githubusercontent.com/helm/helm/master/scripts/get' -o /opt/helm/get-helm.sh
  • Replace /usr/local/bin with /opt/helm in the installation script
# vim /opt/helm/get-heml.sh
  • Make helm installation script executable
# chmod -c +x /opt/helm/get-helm.sh 
mode of '/opt/helm/get-helm.sh' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x)
  • Run helm installation script
# /opt/helm/get-helm.sh
Downloading https://kubernetes-helm.storage.googleapis.com/helm-v2.12.3-linux-amd64.tar.gz
Preparing to install helm and tiller into /opt/helm
helm installed into /opt/helm/helm
tiller installed into /opt/helm/tiller
Run 'helm init' to configure helm.
  • Check wether helm and tiller are on ${PATH} and if the permissions are correct
# which helm tiller
/opt/helm/helm
/opt/helm/tiller

# ls -lA /opt/helm/
total 71652
-rwxr-xr-x 1 root root     7270 Feb 18 17:11 get-helm.sh
-rwxr-xr-x 1 root root 36844864 Feb 18 17:14 helm
-rwxr-xr-x 1 root root 36512352 Feb 18 17:14 tiller
  • Initialize helm environment
# helm init
Creating /root/.helm 
Creating /root/.helm/repository 
Creating /root/.helm/repository/cache 
Creating /root/.helm/repository/local 
Creating /root/.helm/plugins 
Creating /root/.helm/starters 
Creating /root/.helm/cache/archive 
Creating /root/.helm/repository/repositories.yaml 
Adding stable repo with URL: https://kubernetes-charts.storage.googleapis.com 
Adding local repo with URL: http://127.0.0.1:8879/charts 
$HELM_HOME has been configured at /root/.helm.

Tiller (the Helm server-side component) has been installed into your Kubernetes Cluster.

Please note: by default, Tiller is deployed with an insecure 'allow unauthenticated users' policy.
To prevent this, run `helm init` with the --tiller-tls-verify flag.
For more information on securing your installation see: https://docs.helm.sh/using_helm/#securing-your-helm-installation
Happy Helming!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment