1.5. 部署配置值


部署配置值允许您自定义 Data Grid 集群。

提示

您还可以在 Data Grid chart README 中找到字段和值描述。

Expand
字段描述默认值

deploy.clusterDomain

指定内部 Kubernetes 集群域。

cluster.local

deploy.replicas

指定 Data Grid 集群中的节点数量,并为每个节点创建一个 pod。

1

deploy.container.extraJvmOpts

将 JVM 选项传递给 Data Grid 服务器。

没有默认值。

deploy.container.libraries

要在服务器启动前下载库。指定代表为 URL 或 Maven 协调的多个、以空格分隔的工件。将提取 .tar、.tar.gz 或 .zip 格式的存档工件。

没有默认值。

deploy.container.storage.ephemeral

定义存储是临时还是永久的。

默认值为 false,这意味着数据是永久的。将值设为 true 以使用临时存储,这意味着集群关闭或重启时所有数据都会被删除。

deploy.container.storage.size

定义为每个 Data Grid pod 分配多少存储。

1Gi

deploy.container.storage.storageClassName

指定用于持久性卷声明(PVC)的 StorageClass 对象的名称。

没有默认值。默认情况下,持久性卷声明使用将 storageclass.kubernetes.io/is-default-class 注解设置为 true 的存储类。如果包含此字段,则必须指定现有存储类作为值。

deploy.container.resources.limits.cpu

定义每个 Data Grid Pod 的 CPU 限值(以 CPU 单元为单位)。

500m

deploy.container.resources.limits.memory

定义每个 Data Grid pod 的最大内存量(以字节为单位)。

512Mi

deploy.container.resources.requests.cpu

指定每个 Data Grid pod 的最大 CPU 请求(以 CPU 单元为单位)。

500m

deploy.container.resources.requests.memory

指定每个 Data Grid pod 的最大内存请求(以字节为单位)。

512Mi

deploy.security.secretName

指定创建凭证并配置安全授权的 secret 名称。

没有默认值。如果创建自定义安全 secret,则 deploy.security.batch 无效。

deploy.security.batch

为 Data Grid 命令行界面(CLI)提供批处理文件,以便在启动时创建凭据并配置安全授权。

没有默认值。

deploy.expose.type

指定在网络上公开 Hot Rod 和 REST 端点的服务,并提供对数据网格集群(包括数据网格控制台)的访问。

路由 Valid 选项为: "" (空值)、RouteLoadBalancerNodePort。如果您不想在网络上公开数据网格,请设置空值("")。

deploy.expose.nodePort

为默认 30000 到 32767 的节点端口服务指定网络端口。

0 如果没有指定端口,则平台会选择一个可用的端口。

deploy.expose.host

(可选)指定公开路由的主机名。

没有默认值。

deploy.expose.annotations

向在网络上公开 Data Grid 的服务添加注解。

没有默认值。

deploy.logging.categories

配置 Data Grid 集群日志类别和级别。

没有默认值。

deploy.podLabels

为您创建的每个 Data Grid pod 添加标签。

没有默认值。

deploy.svcLabels

为您创建的每个服务添加标签。

没有默认值。

deploy.resourceLabels

为包括 pod 和服务在内的所有 Data Grid 资源添加标签。

没有默认值。

deploy.makeDataDirWritable

允许为每个 Data Grid Server 节点 写入数据 目录。

false 如果将值设为 true,Data Grid 会创建一个 initContainer,它在 /opt/infinispan/server/data 目录中运行 chmod -R 以更改权限。

deploy.securityContext

配置 StatefulSet pod 使用的 securityContext。

{} 这可用于更改挂载的文件系统组。如果您需要将 /opt/infinispan/server/data 的组所有者明确匹配到默认的 Data Grid 的组,请将 securityContext.fsGroup 设置为 185

deploy.monitoring.enabled

使用 ServiceMonitor 启用或禁用监控。

false 用户必须具有 admin 分配的 monitoring-edit 角色,才能部署启用了 ServiceMonitor 的 Helm Chart。

deploy.nameOverride

为所有 Data Grid 集群资源指定一个名称。

Helm Chart 发行版本名称。

deploy.nodeAffinity

定义集群的 StatefulSet 使用的 nodeAffinity 策略

{}

deploy.podAffinity

定义集群的 StatefulSet 使用的 podAffinity 策略

{}

deploy.podAntiAffinity

定义集群的 StatefulSet 使用的 podAntiAffinity 策略

  preferredDuringSchedulingIgnoredDuringExecution:
    - podAffinityTerm:
        labelSelector:
          matchLabels:
            clusterName: {{ tpl include "infinispan-helm-charts.name" . }}
              app: infinispan-pod
        topologyKey: kubernetes.io/hostname
      weight: 100
Copy to Clipboard Toggle word wrap

deploy.infinispan

数据网格服务器配置。

Data Grid 提供默认的服务器配置。有关配置服务器实例的更多信息,请参阅 Data Grid Server 配置值

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat