side8.io Kubernetes Elasticsearch Operator
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
field | description | default |
---|---|---|
spec.master.replicas | sets the number of master nodes | 3 |
spec.data.replicas | sets the number of data nodes | 2 |