Helm v3.1.1 stable 安装

快速入门指南

本指南介绍如何快速开始使用Helm。

先决条件

要成功和安全地使用Helm,需要具备以下先决条件。

1. 需要准备一个K8S集群;

2. 决定要应用于安装的安全配置(如果有);

安装和配置Helm

1. 下载Helm Client

项目地址:https://get.helm.sh/helm-v3.1.1-linux-amd64.tar.gz

# tar –zxvf helm-v3.1.1-linux-amd64.tar.gz
# mv linux-amd64/helm /usr/bin
# helm version
version.BuildInfo{Version:"v3.1.1", GitCommit:"afe70585407b420d0097d07b21c47dc511525ac8", GitTreeState:"clean", GoVersion:"go1.13.8"}

2.Helm tiller安装

[root@k8s-node1 ~]# helm repo add stable https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
"stable" has been added to your repositories
[root@k8s-node1 ~]# helm search repo stable
NAME                           CHART VERSION  APP VERSION          DESCRIPTION                                       
stable/acs-engine-autoscaler   2.1.3          2.1.1          Scales worker nodes within agent pools            
stable/aerospike               0.1.7          v3.14.1.2      A Helm chart for Aerospike in Kubernetes          
stable/anchore-engine          0.1.3          0.1.6          Anchore container analysis and policy evaluatio...
stable/artifactory             7.0.3          5.8.4          Universal Repository Manager supporting all maj...
stable/artifactory-ha          0.1.0          5.8.4          Universal Repository Manager supporting all maj...
stable/aws-cluster-autoscaler  0.3.2                         Scales worker nodes within autoscaling groups.    
stable/bitcoind                0.1.0          0.15.1         Bitcoin is an innovative payment network and a ...
[root@k8s-node1 ~]# helm search repo mysql
NAME                           CHART VERSION  APP VERSION        DESCRIPTION                                       
stable/mysql                   0.3.5                         Fast, reliable, scalable, and easy to use open-...
stable/percona                 0.3.0                         free, fully compatible, enhanced, open source d...
stable/percona-xtradb-cluster  0.0.2          5.7.19         free, fully compatible, enhanced, open source d...
stable/gcloud-sqlproxy         0.2.3                         Google Cloud SQL Proxy                            
stable/mariadb                 2.1.6          10.1.31        Fast, reliable, scalable, and easy to use open-...
[root@k8s-node1 ~]# helm install demochart --generate-name
NAME: demochart-1583147722
LAST DEPLOYED: Mon Mar  2 19:15:23 2020
NAMESPACE: default
STATUS: deployed
REVISION: 1
NOTES:
1. Get the application URL by running these commands:
  export POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=demochart,app.kubernetes.io/instance=demochart-1583147722" -o jsonpath="{.items[0].metadata.name}")
  echo "Visit http://127.0.0.1:8080 to use your application"
  kubectl --namespace default port-forward $POD_NAME 8080:80
 
发布了4 篇原创文章 · 获赞 0 · 访问量 45

猜你喜欢

转载自blog.csdn.net/leijun_110/article/details/104626549