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
相关推荐
浮尘笔记2 小时前
go-zero使用elasticsearch踩坑记:时间存储和展示问题
大数据·elasticsearch·golang·go
unhurried人生——冕临4 小时前
Ubuntu安装Elasticsearch
elasticsearch
这个懒人14 小时前
深入解析Translog机制:Elasticsearch的数据守护者
数据库·elasticsearch·nosql·translog
愿你天黑有灯下雨有伞18 小时前
Docker 安装 Elasticsearch 教程
运维·elasticsearch·docker
遇到困难睡大觉哈哈20 小时前
Git推送错误解决方案:`rejected -> master (fetch first)`
大数据·git·elasticsearch
Roam-G20 小时前
Elasticsearch 证书问题解决
大数据·elasticsearch·jenkins
qr9j422331 天前
elasticsearch 如果按照日期进行筛选
大数据·elasticsearch·jenkins
DavidSoCool1 天前
es分页边界数据重复问题处理
大数据·elasticsearch·搜索引擎
qq_5470261791 天前
Elasticsearch 正排索引
大数据·elasticsearch·jenkins
Elasticsearch1 天前
在 Elasticsearch 中使用 Amazon Nova 模型
elasticsearch