hongbo-miao/hongbomiao.com

View on GitHub
kubernetes/manifests/elastic/hm-elasticsearch.yaml

Summary

Maintainability
Test Coverage
# https://github.com/elastic/cloud-on-k8s/blob/2.7/config/samples/apm/apm_es_kibana.yaml

---
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
  name: hm-elasticsearch
  namespace: hm-elastic
spec:
  version: 8.7.0
  nodeSets:
    - name: default
      count: 1
      config:
        # This setting could have performance implications for production clusters.
        # See: https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-virtual-memory.html
        node.store.allow_mmap: false
#      # https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-volume-claim-templates.html
#      volumeClaimTemplates:
#        - metadata:
#            name: elasticsearch-data
#          spec:
#            accessModes:
#              - ReadWriteOnce
#            resources:
#              requests:
#                storage: 5Gi
#            storageClassName: standard