eck:Elasticsearch running in k8s use Kubernetes operator
https://www.elastic.co/guide/en/cloud-on-k8s/2.1/index.html
The value set for cpu requests directly impacts Elasticsearch node.processors
setting. For example, with resources.requests.cpu: 1
,
Elasticsearch effectively relies on a single core
Table 1. Default limits applied by the operator
Type | Requests | Limits |
---|---|---|
APM Server |
|
|
Elasticsearch |
|
|
Kibana |
|
|
Beat |
|
|
Elastic Agent |
|
|
Elastic Maps Sever |
|
|
Enterprise Search |
|
|
安装:
三步,装crd,装operator,查看log
-
Install custom resource definitions:
kubectl create -f https://download.elastic.co/downloads/eck/2.1.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
-
Install the operator with its RBAC rules:
kubectl apply -f https://download.elastic.co/downloads/eck/2.1.0/operator.yaml
The ECK operator runs by default in the
elastic-system
namespace. It is recommended that you choose a dedicated namespace for your workloads, rather than using theelastic-system
or thedefault
namespace. -
Monitor the operator logs:
kubectl -n elastic-system logs -f statefulset.apps/elastic-operator
When you run the kubectl
command listed in Deploy ECK in your Kubernetes cluster, the following components are installed or updated:
CustomResourceDefinition
objects for all supported resource types (Elasticsearch, Kibana, APM Server, Enterprise Search, Beats, Elastic Agent, and Elastic Maps Server).Namespace
namedelastic-system
to hold all operator resources.ServiceAccount
,ClusterRole
andClusterRoleBinding
to allow the operator to manage resources throughout the cluster.ValidatingWebhookConfiguration
to validate Elastic custom resources on admission.StatefulSet
,ConfigMap
,Secret
andService
inelastic-system
namespace to run the operator application.