Openshift上使用Elasticsearch (ECK) Operator部署ES

部署 7.16.2 版本

Elasticsearch (ECK) Operator部署ES

bash 复制代码
oc new-project middleware-elasticsearch
yaml 复制代码
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
  name: es-test
  namespace: middleware-elasticsearch
spec:
  http:
    tls:
      selfSignedCertificate:
        disabled: true
  nodeSets:
    - config:
        node.roles:
          - master
          - data
        node.store.allow_mmap: false
      count: 3
      name: master
      podTemplate:
        metadata:
          creationTimestamp: null
        spec:
          containers:
            - name: elasticsearch
              resources:
                limits:
                  cpu: '2'
                  memory: 8Gi
                requests:
                  cpu: '1'
                  memory: 4Gi
      volumeClaimTemplates:
        - apiVersion: v1
          kind: PersistentVolumeClaim
          metadata:
            name: elasticsearch-data
          spec:
            accessModes:
              - ReadWriteOnce
            resources:
              requests:
                storage: 512Gi
            storageClassName: ???
            volumeMode: Filesystem
  version: 7.16.2

Elasticsearch (ECK) Operator部署Kibana

yaml 复制代码
apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
  name: kibana
  namespace: middleware-elasticsearch
spec:
  elasticsearchRef:
    name: es-test
  podTemplate:
    spec:
      containers:
        - name: kibana
          resources:
            requests:
              memory: 1Gi
              cpu: 0.5
            limits:
              memory: 2Gi
              cpu: 2
  version: 7.16.2
  count: 1
  revisionHistoryLimit: 0

创建Route

yaml 复制代码
kind: Route
apiVersion: route.openshift.io/v1
metadata:
  name: kibana
  namespace: middleware-elasticsearch
spec:
  host: ???
  to:
    kind: Service
    name: ???-kb-http
    weight: 100
  port:
    targetPort: http
  wildcardPolicy: None

部署 8.4.3 版本

Elasticsearch (ECK) Operator部署ES

bash 复制代码
oc new-project middleware-elasticsearch
yaml 复制代码
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
  name: es-test
  namespace: middleware-es
spec:
  http:
    tls:
      selfSignedCertificate:
        disabled: true
  nodeSets:
    - config:
        node.roles:
          - master
          - data
        node.store.allow_mmap: false
      count: 3
      name: master
      podTemplate:
        metadata:
          creationTimestamp: null
        spec:
          containers:
            - name: elasticsearch
              resources:
                limits:
                  cpu: '2'
                  memory: 8Gi
                requests:
                  cpu: '2'
                  memory: 4Gi
      volumeClaimTemplates:
        - apiVersion: v1
          kind: PersistentVolumeClaim
          metadata:
            name: elasticsearch-data
          spec:
            accessModes:
              - ReadWriteOnce
            resources:
              requests:
                storage: 512Gi
            storageClassName: xxxx
            volumeMode: Filesystem
  version: 8.4.3

Elasticsearch (ECK) Operator部署Kibana

yaml 复制代码
apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
  name: kibana
  namespace: middleware-es
spec:
  http:
    tls:
      selfSignedCertificate:
        disabled: true
  elasticsearchRef:
    name: es-test
  podTemplate:
    spec:
      containers:
        - name: kibana
          resources:
            requests:
              memory: 1Gi
              cpu: 0.5
            limits:
              memory: 2Gi
              cpu: 2
  version: 8.4.3
  count: 1
  revisionHistoryLimit: 0

创建Route

yaml 复制代码
kind: Route
apiVersion: route.openshift.io/v1
metadata:
  name: kibana
  namespace: middleware-es
spec:
  host: ???
  to:
    kind: Service
    name: ???-kb-http
    weight: 100
  port:
    targetPort: https
  wildcardPolicy: None
相关推荐
Joeysoda10 分钟前
Java数据结构 (从0构建链表(LinkedList))
java·linux·开发语言·数据结构·windows·链表·1024程序员节
zfj3211 小时前
学技术学英文:elasticsearch 的数据类型
elasticsearch·数据类型·复杂数据类型
DavidSoCool5 小时前
es 3期 第25节-运用Rollup减少数据存储
大数据·elasticsearch·搜索引擎
Elastic 中国社区官方博客5 小时前
使用 Elasticsearch 导航检索增强生成图表
大数据·数据库·人工智能·elasticsearch·搜索引擎·ai·全文检索
Elastic 中国社区官方博客8 小时前
设计新的 Kibana 仪表板布局以支持可折叠部分等
大数据·数据库·elasticsearch·搜索引擎·信息可视化·全文检索·kibana
Dusk_橙子17 小时前
在elasticsearch中,document数据的写入流程如何?
大数据·elasticsearch·搜索引擎
喝醉酒的小白20 小时前
Elasticsearch 中,分片(Shards)数量上限?副本的数量?
大数据·elasticsearch·jenkins
熟透的蜗牛1 天前
Elasticsearch 8.17.1 JAVA工具类
elasticsearch
九圣残炎1 天前
【ElasticSearch】 Java API Client 7.17文档
java·elasticsearch·搜索引擎
risc1234561 天前
【Elasticsearch】HNSW
elasticsearch