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
相关推荐
woshiabc1112 小时前
windows安装Elasticsearch及增删改查操作
大数据·elasticsearch·搜索引擎
arnold665 小时前
探索 ElasticSearch:性能优化之道
大数据·elasticsearch·性能优化
成长的小牛2337 小时前
es使用knn向量检索中numCandidates和k应该如何配比更合适
大数据·elasticsearch·搜索引擎
Elastic 中国社区官方博客8 小时前
Elasticsearch:什么是查询语言?
大数据·数据库·elasticsearch·搜索引擎·oracle
yaosheng_VALVE9 小时前
探究全金属硬密封蝶阀的奥秘-耀圣控制
运维·eclipse·自动化·pyqt·1024程序员节
dami_king9 小时前
SSH特性|组成|SSH是什么?
运维·ssh·1024程序员节
启明真纳9 小时前
elasticache备份
运维·elasticsearch·云原生·kubernetes
幽弥千月18 小时前
【ELK】ES单节点升级为集群并开启https【亲测可用】
elk·elasticsearch·https
运维&陈同学18 小时前
【Elasticsearch05】企业级日志分析系统ELK之集群工作原理
运维·开发语言·后端·python·elasticsearch·自动化·jenkins·哈希算法
Y编程小白1 天前
Git版本控制工具--基础命令和分支管理
大数据·git·elasticsearch