Skip to content

Instantly share code, notes, and snippets.

@nickadam
Last active October 10, 2019 11:52
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 nickadam/67a113512f058c0d6bfe2def886149a2 to your computer and use it in GitHub Desktop.
Save nickadam/67a113512f058c0d6bfe2def886149a2 to your computer and use it in GitHub Desktop.
Elasticsearch on Kubernetes
apiVersion: elasticsearch.k8s.elastic.co/v1alpha1
kind: Elasticsearch
metadata:
name: hcpss
spec:
version: 7.2.0
nodes:
- nodeCount: 3
config:
node.master: true
node.data: true
node.ingest: true
#volumeClaimTemplates:
#- metadata:
# name: elasticsearch-data # note: elasticsearch-data must be the name of the Elasticsearch volume
# spec:
# accessModes:
# - ReadWriteOnce
# resources:
# requests:
# storage: 2000Gi
# storageClassName: standard # can be any available storage class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment