安装ElasticSearch到集群并设置中文分词
1. 先讲讲过程
用helm安装
helm install \
apphub/elasticsearch \
--name es-smokelee \
--set data.persistence.storageClass=common-svc-nfs-storage-class \
--set data.persistence.size=20Gi
安装过程很顺利,20来分钟全部搞定。再设置Ingress来外放接口出去
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: es-ingress
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
rules:
- host: es.smokelee.com
http:
paths:
- path: /
backend:
serviceName: es-smokelee-elasticsearch-coordinating-only
servicePort: 9200
后来发现中文分词没有。必须的ICU也不在。
$curl http://es.smokelee.com/_cat/plugins
么有插件在
2. 解决思路
- 到$HOME/.helm/cache/archive/找到char包解压,查看Chart
- 通过找到