使用 helm 安装弹性集群时,k8s 集群上“无法检索数据库 [GeoLite2-Country.mmdb]”

问题描述 投票:0回答:0

我在k8s集群上使用helm安装elastic cluster,出现如下错误。无法弄清楚问题出在哪里。

helm 安装 elasticsearch elastic/elasticsearch -f values-aws.yaml

elasticsearch-8.5.1

{“@timestamp”:“2023-05-16T01:22:09.414Z”,“log.level”:“错误”,“消息”:“无法检索数据库[GeoLite2-City.mmdb]”,“ecs .version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[elasticsearch-master-0][ generic][T#2]","log.logger":"org.elasticsearch.ingest.geoip.DatabaseNodeService","elasticsearch.node.name":"elasticsearch-master-0","elasticsearch.cluster.name" :"elasticsearch","error.type":"org.elasticsearch.cluster.block.ClusterBlockException","error.message":"被阻止:[SERVICE_UNAVAILABLE/1/状态未恢复/初始化];"

值-aws.yaml:

# Shrink default JVM heap.
esJavaOpts: "-Xmx128m -Xms128m"

# Allocate smaller chunks of memory per pod.
resources:
  requests:
    cpu: "100m"
    memory: "512M"
  limits:
    cpu: "1000m"
    memory: "512M"

# To allocate more space if above requests and limits aren't enough
# resources:
  # requests:
    # cpu: "500m"
    # memory: "2Gi"
  # limits:
    # cpu: "1000m"
    # memory: "5G"

# Request smaller persistent volumes.
volumeClaimTemplate:
  accessModes: [ "ReadWriteOnce" ]
  storageClassName: "efs-sc"
  resources:
    requests:
      storage: 100M

k8s 集群安装在 AWS 节点上。

elasticsearch kubernetes kubernetes-helm elk
© www.soinside.com 2019 - 2024. All rights reserved.