add es yaml
parent
44946bb8c4
commit
b8d345f361
|
@ -0,0 +1,55 @@
|
|||
---
|
||||
apiVersion: elasticsearch.k8s.elastic.co/v1
|
||||
kind: Elasticsearch
|
||||
metadata:
|
||||
name: bfs-trainer
|
||||
spec:
|
||||
version: 8.8.0
|
||||
volumeClaimDeletePolicy: DeleteOnScaledownOnly
|
||||
nodeSets:
|
||||
- name: all-In-one
|
||||
count: 3
|
||||
config:
|
||||
node.roles: ["master", "data", "ingest", "ml"]
|
||||
podTemplate:
|
||||
spec:
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
- labelSelector:
|
||||
matchLabels:
|
||||
elasticsearch.k8s.elastic.co/cluster-name: bfs-trainer
|
||||
topologyKey: kubernetes.io/hostname
|
||||
containers:
|
||||
- name: elasticsearch
|
||||
env:
|
||||
- name: ES_JAVA_OPTS
|
||||
value: -Xms2g -Xmx2g
|
||||
resources:
|
||||
requests:
|
||||
memory: 128Mi
|
||||
cpu: 100m
|
||||
limits:
|
||||
memory: 8Gi
|
||||
cpu: 2
|
||||
volumeMounts:
|
||||
- name: elasticsearch-data
|
||||
mountPath: /usr/share/elasticsearch/data
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: elasticsearch-data
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 50Gi
|
||||
storageClassName: local-elastic
|
||||
|
||||
---
|
||||
apiVersion: storage.k8s.io/v1
|
||||
kind: StorageClass
|
||||
metadata:
|
||||
name: local-elastic
|
||||
provisioner: openebs.io/local
|
||||
volumeBindingMode: WaitForFirstConsumer
|
Loading…
Reference in New Issue