Skip to content

Instantly share code, notes, and snippets.

@pebrc
Created February 3, 2020 10:02
Show Gist options
  • Save pebrc/3f5c9191891057dd9e914fef475f3e5d to your computer and use it in GitHub Desktop.
Save pebrc/3f5c9191891057dd9e914fef475f3e5d to your computer and use it in GitHub Desktop.
create-es.sh
name=${1:-test}
version=${2:-7.5.1}
image=${3:-docker.elastic.co/elasticsearch/elasticsearch}
echo 'apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: '$name'
spec:
version: '$version'
image: '$image'
nodeSets:
- name: default
count: 1
config:
node.store.allow_mmap: false
http:
service:
spec:
type: LoadBalancer' | kubectl apply -f-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment