Top
Enterprise Postgres 18 for Kubernetes User's Guide

3.4.2 Implement Elastic Cloud on Kubernetes

3.4.2.1 Deploy ECK Operator

  1. Create namespace(project) elastic-system.

  2. In OperatorHub, install Elasticsearch (ECK) Operator provided by Elastic.

  3. Click Install to start proceed.

  4. Change the Installation mode to "A specific namespace on the cluster" and select namespace "elastic-system". Click Install to complete the installation.

3.4.2.2 Deploy Elasticsearch Cluster

  1. In Installed Operators, select "Elasticsearch (ECK) Operator".

  2. Select "Elasticsearch Cluster" and "Create Elasticsearch".

  3. In YAML view, enter the following details and click "Create".

    apiVersion: elasticsearch.k8s.elastic.co/v1
    kind: Elasticsearch
    metadata:
      name: quickstart
    spec:
      version: 8.5.2
      nodeSets:
      - name: default
        count: 1
        config:
          node.store.allow_mmap: false
    

3.4.2.3 Deploy Enterprise Search

  1. In Installed Operators, select "Elasticsearch (ECK) Operator".

  2. Select "Enterprise Search" and "Create EnterpriseSearch".

  3. In YAML view, enter the following details and click "Create".

    apiVersion: enterprisesearch.k8s.elastic.co/v1
    kind: EnterpriseSearch
    metadata:
      name: enterprise-search-quickstart
    spec:
      version: 8.5.2
      count: 1
      elasticsearchRef:
        name: quickstart
    

3.4.2.4 Deploy Kibana

  1. In Installed Operators, select "Elasticsearch (ECK) Operator".

  2. Select "Kibana" and "Create Kibana".

  3. In YAML view, enter the following details and click "Create".

    piVersion: kibana.k8s.elastic.co/v1
    kind: Kibana
    metadata:
      name: quickstart
    spec:
      count: 1
      elasticsearchRef:
        name: quickstart
      enterpriseSearchRef:
        name: enterprise-search-quickstart
      version: 8.5.2
    

3.4.2.5 Expose Kibana using OpenShift Route

  1. Obtain CA certificate that signs Kibana certificate.

    Locate the secret quickstart-kb-http-certs-public.


    Copy the content of ca.crt.

  2. Create route for Internet access.

    Navigate to Networking -> Route and select "Create Route".


    Fill in the details

    Key

    Value

    Name

    kibana

    Hostname

    Leave empty

    Path

    /

    Service

    quickstart-kb-http

    Target port

    5601 -> 5601 (TCP)

    Secure Route

    selected

    TLS termination

    Re-encrypt

    Insecure traffic

    Redirect

    Destination CA certificate

    Content of ca.crt in previous step

3.4.2.6 Login to Kibana

  1. Obtain the Elasticsearch/Kibana login details

    Locate the secret quickstart-es-elastic-user

  2. Observe the login details from the secret

  3. Visit the URL as created in the Route above and use the above credential to login

  4. Select the collapsed menu icon on top left corner and select Enterprise Search -> Content

  5. If fluentd is forwarding logs to this elastic cluster, you will find the indexes here.