Home

Awesome

side8.io Kubernetes Elasticsearch Operator

Usage

Create the operator namespace by running kubectl create namespace operator.

Run kubectl deploy https://raw.githubusercontent.com/side8/k8s-elasticsearch-operator/master/operator.yaml to deploy the Elasticsearch operator into your cluster.

Once configured you can deploy and interact with Elasticsearch resources:

$ cat es.yaml

apiVersion: "db.side8.io/v1"
kind: ElasticSearch
metadata:
  name: es-test-yo
spec:
  master:
    replicas: 3
  data:
    replicas: 4

$ kubectl apply -f es.yaml

Settings

fielddescriptiondefault
spec.master.replicassets the number of master nodes3
spec.data.replicassets the number of data nodes2