Skip to content

Instantly share code, notes, and snippets.

@richkuz
Last active August 1, 2022 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richkuz/76fa002cf982d2809746e686a9f1b725 to your computer and use it in GitHub Desktop.
Save richkuz/76fa002cf982d2809746e686a9f1b725 to your computer and use it in GitHub Desktop.
Elastic Enterprise Search ECK yaml configuration files for testing

For internal Elastic images, login to docker first: https://docker-auth.elastic.co/

Run ECK

export ECK_VERSION=2.1.0
kubectl apply -f https://download.elastic.co/downloads/eck/$ECK_VERSION/operator.yaml
kubectl apply -f https://download.elastic.co/downloads/eck/$ECK_VERSION/crds.yaml

Run ES and Enterprise Search 7.13, for example

kubectl apply -f ent-search-7-13-3.yml

Check some logs

kubectl logs testing-es-default-0

Open ports

kubectl port-forward service/testing-ent-http 3002
kubectl port-forward service/testing-es-http 9200
kubectl port-forward service/testing-es-http 5601

Get elastic user/password

export ELASTIC_USER_PASSWORD=$(
  kubectl get secret testing-es-elastic-user -o=jsonpath='{.data.elastic}' | base64 --decode
)
echo "Elastic User password: $ELASTIC_USER_PASSWORD"
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: testing
spec:
version: 7.13.3
nodeSets:
- name: default
count: 1
config:
node.store.allow_mmap: false
---
apiVersion: enterprisesearch.k8s.elastic.co/v1beta1
kind: EnterpriseSearch
metadata:
name: testing
spec:
version: 7.13.3
count: 1
elasticsearchRef:
name: testing
podTemplate:
spec:
containers:
- name: enterprise-search
env:
- name: JAVA_OPTS
value: -Xms1500m -Xmx1500m
resources:
requests:
memory: 2Gi
limits:
memory: 2Gi
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: testing
spec:
version: 7.17.1
nodeSets:
- name: default
count: 1
config:
node.store.allow_mmap: false
---
apiVersion: enterprisesearch.k8s.elastic.co/v1beta1
kind: EnterpriseSearch
metadata:
name: testing
spec:
version: 7.17.1
count: 1
elasticsearchRef:
name: testing
podTemplate:
spec:
containers:
- name: enterprise-search
env:
- name: JAVA_OPTS
value: -Xms1500m -Xmx1500m
resources:
requests:
memory: 2Gi
limits:
memory: 2Gi
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: testing
spec:
version: 8.1.0
image: docker.elastic.co/elasticsearch/elasticsearch:8.1.0
nodeSets:
- name: default
count: 1
config:
node.store.allow_mmap: false
---
apiVersion: enterprisesearch.k8s.elastic.co/v1
kind: EnterpriseSearch
metadata:
name: testing
spec:
version: 8.1.0
image: docker.elastic.co/enterprise-search/enterprise-search:8.1.0
count: 1
elasticsearchRef:
name: testing
podTemplate:
spec:
containers:
- name: enterprise-search
env:
- name: JAVA_OPTS
value: -Xms1500m -Xmx1500m
resources:
requests:
memory: 2Gi
limits:
memory: 2Gi
---
apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
name: testing
spec:
version: 8.1.0
image: docker.elastic.co/kibana/kibana:8.1.0
count: 1
elasticsearchRef:
name: testing
enterpriseSearchRef:
name: testing
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: testing
spec:
version: 8.2.0
image: docker.elastic.co/staging/elasticsearch:8.2.0-8ea0c40f
nodeSets:
- name: default
count: 1
config:
node.store.allow_mmap: false
---
apiVersion: enterprisesearch.k8s.elastic.co/v1
kind: EnterpriseSearch
metadata:
name: testing
spec:
version: 8.2.0
image: docker.elastic.co/staging/enterprise-search:8.2.0-8ea0c40f
count: 1
elasticsearchRef:
name: testing
config:
ent_search.external_url: https://localhost:3020
podTemplate:
spec:
containers:
- name: enterprise-search
env:
- name: JAVA_OPTS
value: -Xms1500m -Xmx1500m
resources:
requests:
memory: 2Gi
limits:
memory: 2Gi
---
apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
name: testing
spec:
version: 8.2.0
image: docker.elastic.co/staging/kibana:8.2.0-8ea0c40f
count: 1
elasticsearchRef:
name: testing
enterpriseSearchRef:
name: testing
@richkuz
Copy link
Author

richkuz commented Aug 1, 2022

8.4.0 BC1 (staging env only)

apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
  name: testing
spec:
  version: 8.4.0
  image: docker.elastic.co/staging/elasticsearch:8.4.0-91109cf0
  nodeSets:
    - name: default
      count: 1
      config:
        node.store.allow_mmap: false
---
apiVersion: enterprisesearch.k8s.elastic.co/v1
kind: EnterpriseSearch
metadata:
  name: testing
spec:
  version: 8.4.0
  image: docker.elastic.co/staging/enterprise-search:8.4.0-91109cf0
  count: 1
  elasticsearchRef:
    name: testing
  config:
    ent_search.external_url: https://localhost:3020
  podTemplate:
    spec:
      containers:
      - name: enterprise-search
        env:
        - name: JAVA_OPTS
          value: -Xms1500m -Xmx1500m
        resources:
          requests:
            memory: 2Gi
          limits:
            memory: 2Gi
---
apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
  name: testing
spec:
  version: 8.4.0
  image: docker.elastic.co/staging/kibana:8.4.0-91109cf0
  count: 1
  elasticsearchRef:
    name: testing
  enterpriseSearchRef:
    name: testing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment