K8S中安装ES集群
K8S中安装ES集群
·
背景
在K8S 安装ES集群,使用 Elasticsearch (ECK) Operator 实现
官网
###
https://operatorhub.io/operator/elastic-cloud-eck
###
https://www.elastic.co/guide/en/cloud-on-k8s/2.4/k8s-deploy-eck.html
### github
https://github.com/elastic/cloud-on-k8s
参考
## 阿里云容器服务安装ECK
https://blog.csdn.net/cr7258/article/details/126613064
##
部署实践
###
kubectl create -f https://download.elastic.co/downloads/eck/2.3.0/crds.yaml
##
kubectl apply -f https://download.elastic.co/downloads/eck/2.3.0/operator.yaml
###
kubectl -n elastic-system logs -f statefulset.apps/elastic-operator
vim es.yaml
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: mycluster
namespace: elastic-system
spec:
version: 8.3.3
nodeSets:
- name: master-nodes
count: 3
config:
node.master: true
node.data: false
- name: data-nodes
count: 3
config:
node.master: false
node.data: true
---
apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
name: mykibana
namespace: elastic-system
spec:
version: 8.3.3
count: 1
elasticsearchRef:
name: mycluster
报错如下:
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedScheduling 57s (x4 over 3m) default-scheduler 0/3 nodes are available: 3 pod has unbound immediate PersistentVolumeClai
从结论来看,需要创建pv
##
更多推荐
已为社区贡献11条内容
所有评论(0)