Hi,
I want to disable swapiness and bootstrap.memory_lock: true but node is failing. Here is my script:
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: prod
spec:
secureSettings:
- secretName: gcs-credentials
http:
service:
spec:
type: LoadBalancer
tls:
selfSignedCertificate:
subjectAltNames:
- ip: x.x.x.x
version: 7.9.1
nodeSets:
- name: master-nodes
count: 1
config:
node.master: true
node.data: false
node.ingest: true
node.ml: true
xpack.ml.enabled: true
cluster.remote.connect: false
bootstrap.memory_lock: true
podTemplate:
spec:
initContainers:
- name: install-plugins
command:
- sh
- -c
- |
bin/elasticsearch-plugin install --batch repository-gcs
- name: sysctl
securityContext:
privileged: true
command: ['sh', '-c', 'sysctl -w vm.max_map_count=262144']
volumeClaimTemplates:
- metadata:
name: elasticsearch-data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: ssd