2024-08-21
helm
00
请注意,本文编写于 205 天前,最后修改于 200 天前,其中某些信息可能已经过时。

目录

nfs动态持久化存储
helm常用命令
安装elasticsearch

nfs动态持久化存储

https://hub.grapps.cn/marketplace/apps/900

helm repo add nfs-subdir-external-provisioner https://charts.grapps.cn helm install nfs-subdir-external-provisioner nfs-subdir-external-provisioner/nfs-subdir-external-provisioner --set nfs.server=10.100.20.211 --set nfs.path=/data/nfs-k8s/es

image.png

image.png

helm常用命令

helm list helm uninstall elasticsearch

安装elasticsearch

# 使用默认values.yaml helm install elasticsearch appstore/elasticsearch --version 19.10.6 # 更新values.yaml参数 helm upgrade elasticsearch appstore/elasticsearch --version 19.10.6 \ --set data.persistence.storageClass=nfs-client # 导出values.yaml文件修改后 helm show values elastic/elasticsearch > values.yaml # 修改后执行 helm upgrade elasticsearch appstore/elasticsearch --version 19.10.6 -f values.yaml

persistence image.png

kubectl get pods --namespace=default -l app=elasticsearch-master -w

helm repo add elastic https://helm.elastic.co helm pull elastic/elasticsearch --version 7.17.3 helm pull elastic/logstash --version 7.17.3 helm pull elastic/filebeat --version 7.17.3 helm pull elastic/kibana --version 7.17.3

helm install elasticsearch elasticsearch -n default

helm upgrade elasticsearch ./elasticsearch -n default -f elasticsearch/values.yaml

helm pull elastic/filebeat --version 7.17.3

es 安装

helm install es elastic/elasticsearch --version 7.10.2 -f elasticsearch/values.yaml -n default

helm upgrade es elastic/elasticsearch --version 7.10.2 -f elasticsearch/values.yaml -n default

helm repo add elastic https://helm.elastic.co helm repo update

helm search repo elastic/elasticsearch --versions

helm uninstall es -n default

密码存储 kubectl create secret generic elasticsearch-pw
--from-literal=elastic=
--namespace=default

如果对你有用的话,可以打赏哦
打赏
ali pay
wechat pay