apiVersion: elasticsearch.k8s.elastic.co/v1beta1
kind: Elasticsearch
metadata:
annotations:
common.k8s.elastic.co/controller-version: 1.0.0-beta1
name: logging
spec:
version: 7.4.0
http:
tls:
selfSignedCertificate:
disabled: true
nodeSets:
- name: master-node
config:
node.master: true
node.data: false
node.ingest: false
node.ml: false
node.store.allow_mmap: false
index.store.type: niofs
network.bind_host: 127.0.0.1
xpack.monitoring.collection.enabled: true
xpack.security.authc.realms:
native:
native1:
order: 1
count: 3
volumeClaimTemplates:
- metadata:
name: elasticsearch-data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
storageClassName: openebs-hostpath
podTemplate:
metadata:
annotations:
"co.elastic.logs/module": elasticsearch
spec:
containers:
- name: elasticsearch
env:
- name: ES_JAVA_OPTS
value: -Xms4g -Xmx4g
resources:
requests:
memory: 8Gi
cpu: 0.5
limits:
memory: 8Gi
cpu: 2
- name: data-node
config:
node.data: true
node.master: false
node.store.allow_mmap: false
index.store.type: niofs
network.bind_host: 127.0.0.1
xpack.monitoring.collection.enabled: true
xpack.security.authc.realms:
native:
native1:
order: 1
count: 5
volumeClaimTemplates:
- metadata:
name: elasticsearch-data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 400Gi
storageClassName: openebs-hostpath
podTemplate:
metadata:
annotations:
"co.elastic.logs/module": elasticsearch
spec:
containers:
- name: elasticsearch
env:
- name: ES_JAVA_OPTS
value: -Xms8g -Xmx8g
resources:
requests:
memory: 16Gi
cpu: 0.5
limits:
memory: 16Gi
cpu: 2
secureSettings:
- secretName: es-gcs-credentials
and
apiVersion: kibana.k8s.elastic.co/v1beta1
kind: Kibana
metadata:
name: logging
spec:
version: 7.4.0
count: 1
podTemplate:
metadata:
annotations:
"co.elastic.logs/module": kibana
spec:
containers:
- name: kibana
resources:
requests:
memory: 1Gi
cpu: 0.5
limits:
memory: 2Gi
cpu: 2
elasticsearchRef:
name: logging
config:
kibana.defaultAppId: discover
http:
tls:
selfSignedCertificate:
disabled: true