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.yamlThe 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.yamlThe ECK operator runs by default in the
elastic-systemnamespace. It is recommended that you choose a dedicated namespace for your workloads, rather than using theelastic-systemor thedefaultnamespace. -
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:
CustomResourceDefinitionobjects for all supported resource types (Elasticsearch, Kibana, APM Server, Enterprise Search, Beats, Elastic Agent, and Elastic Maps Server).Namespacenamedelastic-systemto hold all operator resources.ServiceAccount,ClusterRoleandClusterRoleBindingto allow the operator to manage resources throughout the cluster.ValidatingWebhookConfigurationto validate Elastic custom resources on admission.StatefulSet,ConfigMap,SecretandServiceinelastic-systemnamespace to run the operator application.
浙公网安备 33010602011771号