Elasticsearch专题精讲——Installing Elasticsearch——Elastic Cloud on Kubernetes(ECK)

发布时间 2023-05-01 19:39:47作者: 左扬

Installing Elasticsearch —— Elastic Cloud on Kubernetes(ECK)

https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s_supported_versions.html

一、Supported Versions:

    • Kubernetes 1.22-1.26
    • OpenShift 4.8-4.12
    • Google Kubernetes Engine (GKE), Azure Kubernetes Service (AKS), and Amazon Elastic Kubernetes Service (EKS)
    • Helm: 3.2.0+
    • Elasticsearch, Kibana, APM Server: 6.8+, 7.1+, 8+
    • Enterprise Search: 7.7+, 8+
    • Beats: 7.0+, 8+
    • Elastic Agent: 7.10+ (standalone), 7.14+ (Fleet), 8+
    • Elastic Maps Server: 7.11+, 8+

ECK should work with all conformant installers as listed in these FAQs. Distributions include source patches and so may not work as-is with ECK.

Alpha, beta, and stabl e API versions follow the same conventions used by Kubernetes.

Elastic Stack application images for the OpenShift-certified Elasticsearch (ECK) Operator are only available from version 7.10 and later.

Check the full Elastic support matrix for more information.

二、Deploy ECK in your Kubernetes cluster

2.1、Install custom resource definitions:

kubectl create -f https://download.elastic.co/downloads/eck/2.7.0/crds.yaml

The following Elastic resources have been created:

customresourcedefinition.apiextensions.k8s.io/agents.agent.k8s.elastic.co created
customresourcedefinition.apiextensions.k8s.io/apmservers.apm.k8s.elastic.co created
customresourcedefinition.apiextensions.k8s.io/beats.beat.k8s.elastic.co created
customresourcedefinition.apiextensions.k8s.io/elasticmapsservers.maps.k8s.elastic.co created
customresourcedefinition.apiextensions.k8s.io/elasticsearches.elasticsearch.k8s.elastic.co created
customresourcedefinition.apiextensions.k8s.io/enterprisesearches.enterprisesearch.k8s.elastic.co created
customresourcedefinition.apiextensions.k8s.io/kibanas.kibana.k8s.elastic.co created  

2.2、Install the operator with its RBAC rules:

kubectl apply -f https://download.elastic.co/downloads/eck/2.7.0/operator.yaml

2.3、Monitor the operator logs:

kubectl -n elastic-system logs -f statefulset.apps/elastic-operator