认识
Built on the Kubernetes Operator pattern, Elastic Cloud on Kubernetes (ECK) extends the basic Kubernetes orchestration capabilities to support the setup and management of Elasticsearch, Kibana, APM Server, Beats, Elastic Agent, Elastic Maps Server, and Logstash on Kubernetes.
官网:
文档:
- Elastic Cloud on Kubernetes | https://www.elastic.co/docs/deploy-manage/deploy/cloud-on-k8s
- Elastic Cloud on Kubernetes API Reference | https://www.elastic.co/docs/reference/cloud-on-k8s/api-docs
- Tools and APIs for Elastic Cloud on Kubernetes | https://www.elastic.co/docs/deploy-manage/deploy/cloud-on-k8s/tools-apis
仓库:https://github.com/elastic/cloud-on-k8s
组成
WIP
构建
部署 Operator 服务 | Deploy an orchestrator | https://www.elastic.co/docs/deploy-manage/deploy/cloud-on-k8s/deploy-an-orchestrator
我们通过习惯于通过 Helm chart 部署,参考文档 https://www.elastic.co/docs/deploy-manage/deploy/cloud-on-k8s/install-using-helm-chart
性质
常用组件部署 | https://www.elastic.co/docs/deploy-manage/deploy/cloud-on-k8s/manage-deployments
其他组件部署 | Orchestrate other Elastic applications
应用
部署 Elasticsearch 服务
Users and roles | Elastic Cloud on Kubernetes [master] | Elastic
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: default
namespace: application-infrastructure
spec:
http:
tls:
selfSignedCertificate:
disabled: true
nodeSets:
- config:
node.store.allow_mmap: false
count: 1
name: node
podTemplate:
metadata:
creationTimestamp: null
spec:
containers: null
volumeClaimTemplates:
- metadata:
name: elasticsearch-data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 200Gi
storageClassName: cbs
version: 7.9.3
# 默认用户:elastic
# 默认密码:kubectl get secret quickstart-es-elastic-user -o go-template='{{.data.elastic | base64decode}}'
# 该密码能够登陆 Kibana
插件安装
针对 Elasticsearch 服务,其插件安装目录 plugins /usr/share/elasticsearch/plugins 为容器内 PVC 目录。所以,如果仅出于插件持久化,则不需要单独处理。
https://www.elastic.co/docs/deploy-manage/deploy/cloud-on-k8s/create-custom-images
参考
Users and roles | Elastic Cloud on Kubernetes [master] | Elastic