Image Overview: eck-operator

Overview: eck-operator Chainguard Image

Elastic Cloud on Kubernetes

Download this Image

The image is available on cgr.dev:

docker pull cgr.dev/chainguard/eck-operator:latest

Usage

There are several ways to deploy the ECK operator. You can follow up the Quickstart guide or you can use the Helm Chart available in Artifact Hub to deploy the operator.

The following example is going to show how to deploy the ECK operator using a its Helm Chart.

Deploy the ECK operator using Helm

  1. Add the Elastic Helm repository:
helm repo add elastic https://helm.elastic.co
  1. Install the ECK operator:

helm install elastic-operator elastic/eck-operator --namespace elastic-system --set image.repository=cgr.dev/chainguard/eck-operator --set image.tag=latest

Deploy an Elasticsearch cluster

  1. Create a file called elasticsearch.yaml with the following content:
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
  name: quickstart
spec:
  version: 8.13.3
  nodeSets:
  - name: default
    count: 1
    config:
      node.store.allow_mmap: false
  1. Deploy the Elasticsearch cluster:
kubectl apply -f elasticsearch.yaml
  1. Check the Elasticsearch cluster status:
kubectl get elasticsearch quickstart -o=jsonpath='{.status.phase}'
  1. Access the Elasticsearch cluster:
kubectl port-forward service/quickstart-es-http 9200
  1. Get the password for the elastic user:
PASSWORD=$(kubectl get secret quickstart-es-elastic-user -o=jsonpath='{.data.elastic}' | base64 --decode)
  1. Access the Elasticsearch cluster using curl:
curl -u "elastic:$PASSWORD" -k "https://localhost:9200"

That’s it! You have deployed an Elasticsearch cluster using the ECK operator.

Last updated: 2024-05-06 00:43