|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
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· DeepSeek 开源周回顾「GitHub 热点速览」
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了