sh 在linux-amd64- wget -O上安装Helm - https://goo.gl/Y7GRN4 |庆典

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 在linux-amd64- wget -O上安装Helm - https://goo.gl/Y7GRN4 |庆典相关的知识,希望对你有一定的参考价值。

#!/usr/bin/env bash

VERSION=v2.13.1

helm_install(){
  wget https://storage.googleapis.com/kubernetes-helm/helm-$VERSION-linux-amd64.tar.gz
  tar zxvf helm-$VERSION-linux-amd64.tar.gz
  sudo mv linux-amd64/helm /usr/local/bin/
}

helm_setup(){
  kubectl -n kube-system create serviceaccount tiller
  kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
  helm init --service-account=tiller --upgrade
}

helm_bash(){
  source <(helm completion bash)
  echo "source <(helm completion bash)" >> ~/.bashrc
}

helm_delete() {
 kubectl -n kube-system delete deployment tiller-deploy
 kubectl delete clusterrolebinding tiller
 kubectl -n kube-system delete serviceaccount tiller
}

helm_install
helm_setup
helm_bash

以上是关于sh 在linux-amd64- wget -O上安装Helm - https://goo.gl/Y7GRN4 |庆典的主要内容,如果未能解决你的问题,请参考以下文章

linux安装go开发环境

etcd集群部署

Linux下安装GO语言环境

Linux下安装GO语言环境

k8s安装helm

Centos 安装 Go 编译环境