helm 安装 ELK
2022-09-21
详细流程图如下:
1)准备条件
1、添加 helm 仓库
helm repo add elastic https://helm.elastic.co
2)helm3 安装 elasticsearch
1、自定义 values
主要是设置 storage Class 持久化和资源限制
# 集群名称
clusterName: "elasticsearch"
# ElasticSearch 6.8+ 默认安装了 x-pack 插件,部分功能免费,这里选禁用
esConfig:
elasticsearch.yml: |
network.host: 0.0.0.0
cluster.name: "elasticsearch"
xpack.security.enabled: false
resources:
requests:
memory: 1Gi
volumeClaimTemplate:
storageClassName: "bigdata-nfs-storage"
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 3Gi
service:
type: NodePort
port: 9000
nodePort: 31311
❝
禁用 Kibana 安全提示(Elasticsearch built-in security features are not enabled)xpack.security.enabled: false
2、开始安装 Elasitcsearch
❝
安装过程比较慢,因为官方镜像下载比较慢
helm install es elastic/elasticsearch -f my-values.yaml --namespace bigdata