C/C++教程

ECK部署cluster

本文主要是介绍ECK部署cluster,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
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

  

这篇关于ECK部署cluster的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!