Skip to content

Instantly share code, notes, and snippets.

@nanmu42
Last active November 8, 2019 10:41
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 nanmu42/c279642274a7910cc326ffcfc4317188 to your computer and use it in GitHub Desktop.
Save nanmu42/c279642274a7910cc326ffcfc4317188 to your computer and use it in GitHub Desktop.
Elastic Cloud + FluentBit on k8s (minisized deployment)
apiVersion: elasticsearch.k8s.elastic.co/v1beta1
kind: Elasticsearch
metadata:
namespace: elastic-system
name: logging-eck
spec:
version: 7.4.2
nodeSets:
- name: default
count: 1
podTemplate:
spec:
initContainers:
- name: sysctl
securityContext:
privileged: true
command: ['sh', '-c', 'sysctl -w vm.max_map_count=262144']
containers:
- name: elasticsearch
env:
- name: ES_JAVA_OPTS
value: "-Xms2g -Xmx3g"
volumeClaimTemplates:
- metadata:
name: elasticsearch-data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 150Gi
storageClassName: hdd-ssd-monthly
config:
node.master: true
node.data: true
node.ingest: true
---
apiVersion: kibana.k8s.elastic.co/v1beta1
kind: Kibana
metadata:
namespace: elastic-system
name: logging-eck
spec:
version: 7.4.2
count: 1
elasticsearchRef:
name: logging-eck
podTemplate:
spec:
containers:
- name: kibana
resources:
requests:
memory: 1Gi
cpu: 0.5
limits:
memory: 2Gi
cpu: 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment