-
-
Save kunisen/58fb0a2c09f2c07e22372bd96763923f to your computer and use it in GitHub Desktop.
ECK - Elastic Stack 7.14 Production + Sidecar Monitoring Sample YAML
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
apiVersion: elasticsearch.k8s.elastic.co/v1 | |
kind: Elasticsearch | |
metadata: | |
name: monitoring-cluster | |
namespace: observability | |
spec: | |
version: 7.14.0 | |
http: | |
service: | |
spec: | |
type: LoadBalancer | |
nodeSets: | |
- name: es-monitor | |
count: 3 | |
config: | |
node.store.allow_mmap: false | |
podTemplate: | |
metadata: | |
labels: | |
key: sample | |
spec: | |
initContainers: | |
- name: sysctl | |
securityContext: | |
privileged: true | |
command: ['sh', '-c', 'sysctl -w vm.max_map_count=262144'] | |
containers: | |
- name: elasticsearch | |
resources: | |
requests: | |
memory: 2Gi | |
cpu: 0.5 | |
limits: | |
memory: 2Gi | |
cpu: 1 | |
--- | |
apiVersion: kibana.k8s.elastic.co/v1 | |
kind: Kibana | |
metadata: | |
name: monitoring-cluster | |
namespace: observability | |
spec: | |
version: 7.14.0 | |
http: | |
service: | |
spec: | |
type: LoadBalancer | |
count: 1 | |
elasticsearchRef: | |
name: monitoring-cluster |
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
apiVersion: elasticsearch.k8s.elastic.co/v1 | |
kind: Elasticsearch | |
metadata: | |
name: elasticsearch-sample | |
namespace: production | |
spec: | |
version: 7.14.0 | |
monitoring: | |
metrics: | |
elasticsearchRefs: | |
- name: monitoring-cluster | |
namespace: observability | |
logs: | |
elasticsearchRefs: | |
- name: monitoring-cluster | |
namespace: observability | |
http: | |
service: | |
spec: | |
type: LoadBalancer | |
nodeSets: | |
- name: master | |
count: 3 | |
config: | |
node.roles: ["master"] | |
xpack.ml.enabled: true | |
node.store.allow_mmap: false | |
volumeClaimTemplates: | |
- metadata: | |
name: elasticsearch-data | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 20Gi | |
storageClassName: standard | |
podTemplate: | |
metadata: | |
labels: | |
key: sample | |
spec: | |
initContainers: | |
- name: sysctl | |
securityContext: | |
privileged: true | |
command: ['sh', '-c', 'sysctl -w vm.max_map_count=262144'] | |
containers: | |
- name: elasticsearch | |
resources: | |
requests: | |
memory: 2Gi | |
cpu: 0.5 | |
limits: | |
memory: 2Gi | |
cpu: 1 | |
- name: data | |
count: 3 | |
config: | |
node.roles: ["data", "ingest", "ml", "transform"] | |
node.store.allow_mmap: false | |
volumeClaimTemplates: | |
- metadata: | |
name: elasticsearch-data | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 20Gi | |
storageClassName: standard | |
podTemplate: | |
metadata: | |
labels: | |
key: sample | |
spec: | |
initContainers: | |
- name: sysctl | |
securityContext: | |
privileged: true | |
command: ['sh', '-c', 'sysctl -w vm.max_map_count=262144'] | |
containers: | |
- name: elasticsearch | |
resources: | |
requests: | |
memory: 2Gi | |
cpu: 0.5 | |
limits: | |
memory: 2Gi | |
cpu: 1 | |
--- | |
apiVersion: kibana.k8s.elastic.co/v1 | |
kind: Kibana | |
metadata: | |
name: kibana-sample | |
namespace: production | |
spec: | |
version: 7.14.0 | |
monitoring: | |
metrics: | |
elasticsearchRefs: | |
- name: monitoring-cluster | |
namespace: observability | |
logs: | |
elasticsearchRefs: | |
- name: monitoring-cluster | |
namespace: observability | |
http: | |
service: | |
spec: | |
type: LoadBalancer | |
count: 1 | |
elasticsearchRef: | |
name: elasticsearch-sample |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment