apiVersion: elasticsearch.k8s.elastic.co/v1beta1 kind: Elasticsearch metadata: name: elasticsearch-7x6x2 namespace: devops spec: image: hub.pri.ibanyu.com/library/elasticsearch:7.6.2 version: 7.6.2 nodeSets: - name: node count: 3 volumeClaimTemplates: - metadata: name: elasticsearch-data spec: accessModes: - ReadWriteOnce resources: requests: storage: 700Gi storageClassName: local-storage config: node.master: true node.data: true node.ingest: true thread_pool.write.queue_size: 3000 reindex.remote.whitelist: "10.93.151.201:9200" podTemplate: metadata: labels: es: "7" elk: "true" spec: nodeSelector: elk: "7.6" initContainers: - name: sysctl securityContext: privileged: true command: ['sh', '-c', 'sysctl -w vm.max_map_count=262144'] containers: - name: elasticsearch env: - name: xpack.security.enabled value: "false" - name: READINESS_PROBE_PROTOCOL value: http - name: ES_JAVA_OPTS value: -Xms32256m -Xmx32256m resources: requests: memory: 64Gi cpu: 30 limits: memory: 90Gi cpu: 45 http: tls: selfSignedCertificate: disabled: true