Use an Elasticsearch cluster managed by ECKedit

Managing APM Server, Kibana and Elasticsearch with ECK allows a smooth and secured integration between the stack components. The output configuration of the APM Server is setup automatically to establish a trust relationship with Elasticsearch. Specifying the Kibana reference allows ECK to automatically configure the Kibana endpoint.

  1. To deploy an APM Server and connect it to the Elasticsearch cluster and Kibana instance you created in the quickstart, apply the following specification:

    cat <<EOF | kubectl apply -f -
    kind: ApmServer
      name: apm-server-quickstart
      namespace: default
      version: 8.14.1
      count: 1
        name: quickstart
        name: quickstart

A reference to a Kibana instance is only required for APM Server versions 8.0.0 and later.

Starting with version 8.0.0 the following Kibana configuration is required to run APM Server

kind: Kibana
  - name: apm
    version: latest

By default elasticsearchRef targets all nodes in your Elasticsearch cluster. If you want to direct traffic to specific nodes of your cluster, refer to Traffic Splitting for more information and examples.

  1. Monitor APM Server deployment.

    You can retrieve details about the APM Server instance:

    kubectl get apmservers
    NAME                     HEALTH    NODES    VERSION   AGE
    apm-server-quickstart    green     1        8.14.1      8m

    And you can list all the Pods belonging to a given deployment:

    kubectl get pods --selector=''
    NAME                                                READY   STATUS    RESTARTS   AGE
    apm-server-quickstart-apm-server-69b447ddc5-fflc6   1/1     Running   0          2m50s