|NO.Z.00285|——————————|CloudNative|——|KuberNetes&运维.V07|——|EFLK架构.v02|部署helm|

一、Filebeat部署环境准备
### --- 部署环境检查
~~~     清理fluentd:测试环境压力不够

[root@k8s-master01 EFK]# kubectl scale deploy --replicas=0 fluentd-es-v3.0.1-xprsz -n public-service
### --- 或者使用清理daemonset的方式清理fluentd,
~~~     注:因为在该namespace下只有一个daemonset可以使用--all,若是多个可以使用-l app=***

[root@k8s-master01 EFK]# kubectl delete ds -n public-service --all
### --- 创建Filebeat文件夹并进入

[root@k8s-master01 EFK]# mkdir filebeat
[root@k8s-master01 EFK]# cd  filebeat/

一、部署helm:
### --- 组件helm+zookeeper+kafka

~~~     # 部署EFLK架构:
~~~     ElasticSearch+Filebeat+Logstash+Kibana+zookeeper+kafka
### --- 下载版本包并解压

~~~     # 下载helm安装包
[root@k8s-master01 ~]# wget https://get.helm.sh/helm-v3.5.4-linux-amd64.tar.gz
### --- 解压helm安装包 

[root@k8s-master01 helm]# tar -zxvf helm-v3.5.4-linux-amd64.tar.gz 
linux-amd64/
linux-amd64/helm
linux-amd64/LICENSE
linux-amd64/README.md
二、部署helm
### --- 安装helm 

[root@k8s-master01 helm]# cd linux-amd64/
[root@k8s-master01 linux-amd64]# cp -rp helm /usr/local/bin/
### --- 查看helm的版本

[root@k8s-master01 helm]# helm version
version.BuildInfo{Version:"v3.5.4", GitCommit:"1b5edb69df3d3a08df77c9902dc17af864ff05d1", GitTreeState:"clean", GoVersion:"go1.15.11"}
三、添加常用的helm仓库
### --- 添加helm仓库

[root@k8s-master01 helm]# helm repo add bitnami https://charts.bitnami.com/bitnami
"bitnami" has been added to your repositories     // 添加helm官方仓库
[root@k8s-master01 helm]# helm repo add ali-stable https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
"ali-stable" has been added to your repositories  // 添加aliyun的helm仓库
### --- 查看添加的helm仓库

[root@k8s-master01 helm]# helm repo list
NAME        URL                                                   
bitnami     https://charts.bitnami.com/bitnami                    
ali-stable  https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
四、helm仓库常用操作
### --- 查看helm下的zookeeper和kafka的程序包

[root@k8s-master01 helm]# helm search repo zookeeper
NAME                        CHART VERSION   APP VERSION DESCRIPTION                                       
bitnami/zookeeper           6.7.2           3.7.0       A centralized service for maintaining configura...
bitnami/kafka               12.18.1         2.8.0       Apache Kafka is a distributed streaming platform. 
bitnami/solr                0.3.3           8.8.2       Apache Solr is an open source enterprise search...
### --- 查看当前环境通过helm安装了那些应用程序

[root@k8s-master01 linux-amd64]# helm list
NAME    NAMESPACE   REVISION    UPDATED STATUS  CHART   APP VERSION

 
 
 
 
 
 
 
 
 

Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart
                                                                                                                                                   ——W.S.Landor

 

 

posted on   yanqi_vip  阅读(29)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· DeepSeek 开源周回顾「GitHub 热点速览」
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示