Created
February 3, 2020 10:02
-
-
Save pebrc/3f5c9191891057dd9e914fef475f3e5d to your computer and use it in GitHub Desktop.
create-es.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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