Helm Chart 值
这是 Loki Helm Chart 值的生成参考。
注意:本参考适用于 Loki Helm Chart 3.0 或更高版本。如果您使用的是社区仓库中的
grafana/loki-stack
Helm Chart,请参考相应 Github 仓库 grafana/helm-charts 中的values.yaml
。
键 | 类型 | 描述 | 默认值 |
---|---|---|---|
adminApi | object | admin-api 目标的配置 | {
"affinity": {},
"annotations": {},
"containerSecurityContext": {
"allowPrivilegeEscalation": false,
"capabilities": {
"drop": [
"ALL"
]
},
"readOnlyRootFilesystem": true
},
"env": [],
"extraArgs": {},
"extraContainers": [],
"extraEnvFrom": [],
"extraVolumeMounts": [],
"extraVolumes": [],
"hostAliases": [],
"initContainers": [],
"labels": {},
"nodeSelector": {},
"podSecurityContext": {
"runAsGroup": 10001,
"runAsNonRoot": true,
"runAsUser": 10001
},
"readinessProbe": {
"httpGet": {
"path": "/ready",
"port": "http-metrics"
},
"initialDelaySeconds": 45
},
"replicas": 1,
"resources": {},
"service": {
"annotations": {},
"labels": {}
},
"strategy": {
"type": "RollingUpdate"
},
"terminationGracePeriodSeconds": 60,
"tolerations": [],
"topologySpreadConstraints": []
}
|
adminApi.affinity | object | admin-api Pod 的亲和性 | {}
|
adminApi.annotations | object | admin-api Deployment 的额外注解 | {}
|
adminApi.env | list | 配置可选的环境变量 | []
|
adminApi.extraArgs | object | admin-api 目标的额外 CLI 参数 | {}
|
adminApi.extraContainers | list | 配置可选的 extraContainers | []
|
adminApi.extraEnvFrom | list | 从 secrets 或 configmaps 添加到 admin-api pod 的环境变量 | []
|
adminApi.extraVolumeMounts | list | Pod 的额外卷挂载 | []
|
adminApi.extraVolumes | list | Pod 的额外卷 | []
|
adminApi.hostAliases | list | 要添加的 hostAliases | []
|
adminApi.initContainers | list | 配置可选的 initContainers | []
|
adminApi.labels | object | admin-api Deployment 的额外标签 | {}
|
adminApi.nodeSelector | object | admin-api Pod 的节点选择器 | {}
|
adminApi.podSecurityContext | object | 以用户 enterprise-logs(uid=10001) 运行容器。不得指定 fsGroup ,因为这些安全选项应用于容器级别而不是 Pod 级别。 | {
"runAsGroup": 10001,
"runAsNonRoot": true,
"runAsUser": 10001
}
|
adminApi.readinessProbe | object | 就绪探针 | {
"httpGet": {
"path": "/ready",
"port": "http-metrics"
},
"initialDelaySeconds": 45
}
|
adminApi.replicas | int | 定义实例数量 | 1
|
adminApi.resources | object | 值在 small.yaml 和 large.yaml 中定义 | {}
|
adminApi.service | object | admin-api Service 的额外标签和注解 | {
"annotations": {},
"labels": {}
}
|
adminApi.strategy | object | 更新策略 | {
"type": "RollingUpdate"
}
|
adminApi.terminationGracePeriodSeconds | int | 允许 admin-api 在被终止前优雅关闭的宽限期 | 60
|
adminApi.tolerations | list | admin-api Pod 的容忍度 | []
|
adminApi.topologySpreadConstraints | list | admin-api pod 的拓扑分布约束 | []
|
backend | object | backend pod 的配置 | {
"affinity": {
"podAntiAffinity": {
"requiredDuringSchedulingIgnoredDuringExecution": [
{
"labelSelector": {
"matchLabels": {
"app.kubernetes.io/component": "backend"
}
},
"topologyKey": "kubernetes.io/hostname"
}
]
}
},
"annotations": {},
"autoscaling": {
"behavior": {},
"enabled": false,
"maxReplicas": 6,
"minReplicas": 3,
"targetCPUUtilizationPercentage": 60,
"targetMemoryUtilizationPercentage": null
},
"dnsConfig": {},
"extraArgs": [],
"extraContainers": [],
"extraEnv": [],
"extraEnvFrom": [],
"extraVolumeMounts": [],
"extraVolumes": [],
"image": {
"registry": null,
"repository": null,
"tag": null
},
"initContainers": [],
"nodeSelector": {},
"persistence": {
"annotations": {},
"dataVolumeParameters": {
"emptyDir": {}
},
"enableStatefulSetAutoDeletePVC": true,
"selector": null,
"size": "10Gi",
"storageClass": null,
"volumeClaimsEnabled": true
},
"podAnnotations": {},
"podLabels": {},
"podManagementPolicy": "Parallel",
"priorityClassName": null,
"replicas": 3,
"resources": {},
"selectorLabels": {},
"service": {
"annotations": {},
"labels": {}
},
"targetModule": "backend",
"terminationGracePeriodSeconds": 300,
"tolerations": [],
"topologySpreadConstraints": []
}
|
backend.affinity | object | backend pod 的亲和性。 | Hard node anti-affinity |
backend.annotations | object | backend StatefulSet 的注解 | {}
|
backend.autoscaling.behavior | object | 伸缩时的行为策略。 | {}
|
backend.autoscaling.enabled | bool | 为 backend 启用自动伸缩。 | false
|
backend.autoscaling.maxReplicas | int | backend 的最大自动伸缩副本数。 | 6
|
backend.autoscaling.minReplicas | int | backend 的最小自动伸缩副本数。 | 3
|
backend.autoscaling.targetCPUUtilizationPercentage | int | backend 的目标 CPU 使用率百分比。 | 60
|
backend.autoscaling.targetMemoryUtilizationPercentage | string | backend 的目标内存使用率百分比。 | null
|
backend.dnsConfig | object | backend pod 的 DNS 配置 | {}
|
backend.extraArgs | list | backend 的额外 CLI 参数 | []
|
backend.extraContainers | list | 添加到 backend pod 的容器 | []
|
backend.extraEnv | list | 添加到 backend pod 的环境变量 | []
|
backend.extraEnvFrom | list | 从 secrets 或 configmaps 添加到 backend pod 的环境变量 | []
|
backend.extraVolumeMounts | list | 添加到 backend pod 的卷挂载 | []
|
backend.extraVolumes | list | 添加到 backend pod 的卷 | []
|
backend.image.registry | string | backend 镜像的 Docker 注册表。覆盖 loki.image.registry | null
|
backend.image.repository | string | backend 镜像的 Docker 镜像仓库。覆盖 loki.image.repository | null
|
backend.image.tag | string | backend 镜像的 Docker 镜像标签。覆盖 loki.image.tag | null
|
backend.initContainers | list | 添加到 backend pod 的 Init 容器 | []
|
backend.nodeSelector | object | backend pod 的节点选择器 | {}
|
backend.persistence.annotations | object | 卷声明的注解 | {}
|
backend.persistence.dataVolumeParameters | object | 当 volumeClaimEnabled 为 false 时,用于 data 卷的参数 | {
"emptyDir": {}
}
|
backend.persistence.enableStatefulSetAutoDeletePVC | bool | 启用 StatefulSetAutoDeletePVC 功能 | true
|
backend.persistence.selector | string | 持久卷的选择器 | null
|
backend.persistence.size | string | 持久卷大小 | "10Gi"
|
backend.persistence.storageClass | string | 要使用的存储类。如果已定义,则使用 storageClassName | null
|
backend.persistence.volumeClaimsEnabled | bool | 在 pod 规范中启用卷声明 | true
|
backend.podAnnotations | object | backend pod 的注解 | {}
|
backend.podLabels | object | 每个 backend pod 的额外标签 | {}
|
backend.podManagementPolicy | string | 默认并行部署所有 Pod。 | "Parallel"
|
backend.priorityClassName | string | backend pod 的 PriorityClass 名称 | null
|
backend.replicas | int | backend 的副本数量 | 3
|
backend.resources | object | backend 的资源请求和限制 | {}
|
backend.selectorLabels | object | 每个 backend pod 的额外选择器标签 | {}
|
backend.service.annotations | object | backend Service 的注解 | {}
|
backend.service.labels | object | backend Service 的额外标签 | {}
|
backend.targetModule | string | backend 要加载的 Loki 模块的逗号分隔列表 | "backend"
|
backend.terminationGracePeriodSeconds | int | 允许 backend 在被终止前优雅关闭的宽限期。特别是对于 ingester,必须增加此值。它必须足够长,以便 backend 可以优雅地关闭,刷新/传输所有数据,并在关闭时成功离开成员环。 | 300
|
backend.tolerations | list | backend pod 的容忍度 | []
|
backend.topologySpreadConstraints | list | backend pod 的拓扑分布约束 | []
|
bloomBuilder | object | bloom-builder 的配置 | {
"affinity": {
"podAntiAffinity": {
"requiredDuringSchedulingIgnoredDuringExecution": [
{
"labelSelector": {
"matchLabels": {
"app.kubernetes.io/component": "bloom-builder"
}
},
"topologyKey": "kubernetes.io/hostname"
}
]
}
},
"appProtocol": {
"grpc": ""
},
"autoscaling": {
"behavior": {
"enabled": false,
"scaleDown": {},
"scaleUp": {}
},
"customMetrics": [],
"enabled": false,
"maxReplicas": 3,
"minReplicas": 1,
"targetCPUUtilizationPercentage": 60,
"targetMemoryUtilizationPercentage": null
},
"command": null,
"extraArgs": [],
"extraContainers": [],
"extraEnv": [],
"extraEnvFrom": [],
"extraVolumeMounts": [],
"extraVolumes": [],
"hostAliases": [],
"image": {
"registry": null,
"repository": null,
"tag": null
},
"maxUnavailable": null,
"nodeSelector": {},
"podAnnotations": {},
"podLabels": {},
"priorityClassName": null,
"replicas": 0,
"resources": {},
"serviceAnnotations": {},
"serviceLabels": {},
"terminationGracePeriodSeconds": 30,
"tolerations": []
}
|
bloomBuilder.affinity | object | bloom-builder pod 的亲和性。 | Hard node anti-affinity |
bloomBuilder.appProtocol | object | 向 queryFrontend 服务添加 appProtocol 字段。这使得 bloomBuilder 可以与 istio 协议选择一起工作。 | {
"grpc": ""
}
|
bloomBuilder.appProtocol.grpc | string | 设置可选的 grpc 服务协议。例如:“grpc”、“http2”或“https” | ""
|
bloomBuilder.autoscaling.behavior.enabled | bool | 启用自动伸缩行为 | false
|
bloomBuilder.autoscaling.behavior.scaleDown | object | 定义缩容策略,必须符合 HPAScalingRules | {}
|
bloomBuilder.autoscaling.behavior.scaleUp | object | 定义扩容策略,必须符合 HPAScalingRules | {}
|
bloomBuilder.autoscaling.customMetrics | list | 允许使用 HPA/v2 schema 定义自定义指标(例如,Pod、Object 或 External metrics) | []
|
bloomBuilder.autoscaling.enabled | bool | 为 bloom-builder 启用自动伸缩 | false
|
bloomBuilder.autoscaling.maxReplicas | int | bloom-builder 的最大自动伸缩副本数 | 3
|
bloomBuilder.autoscaling.minReplicas | int | bloom-builder 的最小自动伸缩副本数 | 1
|
bloomBuilder.autoscaling.targetCPUUtilizationPercentage | int | bloom-builder 的目标 CPU 使用率百分比 | 60
|
bloomBuilder.autoscaling.targetMemoryUtilizationPercentage | string | bloom-builder 的目标内存使用率百分比 | null
|
bloomBuilder.command | string | 要执行的命令,而非 Docker 镜像中定义的命令 | null
|
bloomBuilder.extraArgs | list | bloom-builder 的额外 CLI 参数 | []
|
bloomBuilder.extraContainers | list | 添加到 bloom-builder pod 的容器 | []
|
bloomBuilder.extraEnv | list | 添加到 bloom-builder pod 的环境变量 | []
|
bloomBuilder.extraEnvFrom | list | 从 secrets 或 configmaps 添加到 bloom-builder pod 的环境变量 | []
|
bloomBuilder.extraVolumeMounts | list | 添加到 bloom-builder pod 的卷挂载 | []
|
bloomBuilder.extraVolumes | list | 添加到 bloom-builder pod 的卷 | []
|
bloomBuilder.hostAliases | list | 要添加的 hostAliases | []
|
bloomBuilder.image.registry | string | bloom-builder 镜像的 Docker 注册表。覆盖 loki.image.registry | null
|
bloomBuilder.image.repository | string | bloom-builder 镜像的 Docker 镜像仓库。覆盖 loki.image.repository | null
|
bloomBuilder.image.tag | string | bloom-builder 镜像的 Docker 镜像标签。覆盖 loki.image.tag | null
|
bloomBuilder.maxUnavailable | string | Pod Disruption Budget 的 maxUnavailable | null
|
bloomBuilder.nodeSelector | object | bloom-builder pod 的节点选择器 | {}
|
bloomBuilder.podAnnotations | object | bloom-builder pod 的注解 | {}
|
bloomBuilder.podLabels | object | bloom-builder pod 的标签 | {}
|
bloomBuilder.priorityClassName | string | bloom-builder pod 的 PriorityClass 名称 | null
|
bloomBuilder.replicas | int | bloom-builder 的副本数量 | 0
|
bloomBuilder.resources | object | bloom-builder 的资源请求和限制 | {}
|
bloomBuilder.serviceAnnotations | object | bloom-builder 服务的注解 | {}
|
bloomBuilder.serviceLabels | object | bloom-builder 服务的标签 | {}
|
bloomBuilder.terminationGracePeriodSeconds | int | 允许 bloom-builder 在被终止前优雅关闭的宽限期 | 30
|
bloomBuilder.tolerations | list | bloom-builder pod 的容忍度 | []
|
bloomGateway | object | bloom-gateway 的配置 | {
"affinity": {
"podAntiAffinity": {
"requiredDuringSchedulingIgnoredDuringExecution": [
{
"labelSelector": {
"matchLabels": {
"app.kubernetes.io/component": "bloom-gateway"
}
},
"topologyKey": "kubernetes.io/hostname"
}
]
}
},
"appProtocol": {
"grpc": ""
},
"command": null,
"extraArgs": [],
"extraContainers": [],
"extraEnv": [],
"extraEnvFrom": [],
"extraVolumeMounts": [],
"extraVolumes": [],
"hostAliases": [],
"image": {
"registry": null,
"repository": null,
"tag": null
},
"initContainers": [],
"livenessProbe": {},
"nodeSelector": {},
"persistence": {
"annotations": {},
"claims": [
{
"name": "data",
"size": "10Gi",
"storageClass": null
}
],
"enableStatefulSetAutoDeletePVC": false,
"enabled": false,
"whenDeleted": "Retain",
"whenScaled": "Retain"
},
"podAnnotations": {},
"podLabels": {},
"priorityClassName": null,
"readinessProbe": {},
"replicas": 0,
"resources": {},
"serviceAccount": {
"annotations": {},
"automountServiceAccountToken": true,
"create": false,
"imagePullSecrets": [],
"name": null
},
"serviceAnnotations": {},
"serviceLabels": {},
"terminationGracePeriodSeconds": 30,
"tolerations": []
}
|
bloomGateway.affinity | object | bloom-gateway pod 的亲和性。 | Hard node anti-affinity |
bloomGateway.appProtocol | object | 设置可选的 grpc 服务协议。例如:“grpc”、“http2”或“https” | {
"grpc": ""
}
|
bloomGateway.command | string | 要执行的命令,而非 Docker 镜像中定义的命令 | null
|
bloomGateway.extraArgs | list | bloom-gateway 的额外 CLI 参数 | []
|
bloomGateway.extraContainers | list | 添加到 bloom-gateway pod 的容器 | []
|
bloomGateway.extraEnv | list | 添加到 bloom-gateway pod 的环境变量 | []
|
bloomGateway.extraEnvFrom | list | 从 secrets 或 configmaps 添加到 bloom-gateway pod 的环境变量 | []
|
bloomGateway.extraVolumeMounts | list | 添加到 bloom-gateway pod 的卷挂载 | []
|
bloomGateway.extraVolumes | list | 添加到 bloom-gateway pod 的卷 | []
|
bloomGateway.hostAliases | list | 要添加的 hostAliases | []
|
bloomGateway.image.registry | string | bloom-gateway 镜像的 Docker 注册表。覆盖 loki.image.registry | null
|
bloomGateway.image.repository | string | bloom-gateway 镜像的 Docker 镜像仓库。覆盖 loki.image.repository | null
|
bloomGateway.image.tag | string | bloom-gateway 镜像的 Docker 镜像标签。覆盖 loki.image.tag | null
|
bloomGateway.initContainers | list | 添加到 bloom-gateway pod 的 Init 容器 | []
|
bloomGateway.livenessProbe | object | ingester pod 的活跃度探针设置。如果为空,则使用 loki.livenessProbe | {}
|
bloomGateway.nodeSelector | object | bloom-gateway pod 的节点选择器 | {}
|
bloomGateway.persistence.annotations | object | bloom-gateway PVC 的注解 | {}
|
bloomGateway.persistence.claims | list | bloom-gateway PVC 列表 |
|
bloomGateway.persistence.claims[0].size | string | 持久卷大小 | "10Gi"
|
bloomGateway.persistence.enableStatefulSetAutoDeletePVC | bool | 启用 StatefulSetAutoDeletePVC 功能 | false
|
bloomGateway.persistence.enabled | bool | 为 bloom-gateway 启用创建 PVC | false
|
bloomGateway.podAnnotations | object | bloom-gateway pod 的注解 | {}
|
bloomGateway.podLabels | object | bloom-gateway pod 的标签 | {}
|
bloomGateway.priorityClassName | string | bloom-gateway pod 的 PriorityClass 名称 | null
|
bloomGateway.readinessProbe | object | ingester pod 的就绪探针设置。如果为空,则使用 loki.readinessProbe | {}
|
bloomGateway.replicas | int | bloom-gateway 的副本数量 | 0
|
bloomGateway.resources | object | bloom-gateway 的资源请求和限制 | {}
|
bloomGateway.serviceAccount.annotations | object | bloom-gateway 服务帐户的注解 | {}
|
bloomGateway.serviceAccount.automountServiceAccountToken | bool | 将此开关设置为 false 以选择退出服务帐户的自动挂载 API 凭据 | true
|
bloomGateway.serviceAccount.imagePullSecrets | list | bloom-gateway 服务帐户的镜像拉取 secrets | []
|
bloomGateway.serviceAccount.name | string | 用于 bloom-gateway 的 ServiceAccount 名称。如果未设置且 create 为 true,则通过在通用 ServiceAccount 后附加 "-bloom-gateway" 生成名称。 | null
|
bloomGateway.serviceAnnotations | object | bloom-gateway 服务的注解 | {}
|
bloomGateway.serviceLabels | object | bloom-gateway 服务的标签 | {}
|
bloomGateway.terminationGracePeriodSeconds | int | 允许 bloom-gateway 在被终止前优雅关闭的宽限期 | 30
|
bloomGateway.tolerations | list | bloom-gateway pod 的容忍度 | []
|
bloomPlanner | object | bloom-planner 的配置 | {
"affinity": {
"podAntiAffinity": {
"requiredDuringSchedulingIgnoredDuringExecution": [
{
"labelSelector": {
"matchLabels": {
"app.kubernetes.io/component": "bloom-planner"
}
},
"topologyKey": "kubernetes.io/hostname"
}
]
}
},
"appProtocol": {
"grpc": ""
},
"command": null,
"extraArgs": [],
"extraContainers": [],
"extraEnv": [],
"extraEnvFrom": [],
"extraVolumeMounts": [],
"extraVolumes": [],
"hostAliases": [],
"image": {
"registry": null,
"repository": null,
"tag": null
},
"initContainers": [],
"livenessProbe": {},
"nodeSelector": {},
"persistence": {
"annotations": {},
"claims": [
{
"name": "data",
"size": "10Gi",
"storageClass": null
}
],
"enableStatefulSetAutoDeletePVC": false,
"enabled": false,
"whenDeleted": "Retain",
"whenScaled": "Retain"
},
"podAnnotations": {},
"podLabels": {},
"priorityClassName": null,
"readinessProbe": {},
"replicas": 0,
"resources": {},
"serviceAccount": {
"annotations": {},
"automountServiceAccountToken": true,
"create": false,
"imagePullSecrets": [],
"name": null
},
"serviceAnnotations": {},
"serviceLabels": {},
"terminationGracePeriodSeconds": 30,
"tolerations": []
}
|
bloomPlanner.affinity | object | bloom-planner pod 的亲和性。 | Hard node anti-affinity |
bloomPlanner.appProtocol | object | 设置可选的 grpc 服务协议。例如:“grpc”、“http2”或“https” | {
"grpc": ""
}
|
bloomPlanner.command | string | 要执行的命令,而非 Docker 镜像中定义的命令 | null
|
bloomPlanner.extraArgs | list | bloom-planner 的额外 CLI 参数 | []
|
bloomPlanner.extraContainers | list | 添加到 bloom-planner pod 的容器 | []
|
bloomPlanner.extraEnv | list | 添加到 bloom-planner pod 的环境变量 | []
|
bloomPlanner.extraEnvFrom | list | 从 secrets 或 configmaps 添加到 bloom-planner pod 的环境变量 | []
|
bloomPlanner.extraVolumeMounts | list | 添加到 bloom-planner pod 的卷挂载 | []
|
bloomPlanner.extraVolumes | list | 添加到 bloom-planner pod 的卷 | []
|
bloomPlanner.hostAliases | list | 要添加的 hostAliases | []
|
bloomPlanner.image.registry | string | bloom-planner 镜像的 Docker 注册表。覆盖 loki.image.registry | null
|
bloomPlanner.image.repository | string | bloom-planner 镜像的 Docker 镜像仓库。覆盖 loki.image.repository | null
|
bloomPlanner.image.tag | string | bloom-planner 镜像的 Docker 镜像标签。覆盖 loki.image.tag | null
|
bloomPlanner.initContainers | list | 添加到 bloom-planner pod 的 Init 容器 | []
|
bloomPlanner.livenessProbe | object | ingester pod 的活跃度探针设置。如果为空,则使用 loki.livenessProbe | {}
|
bloomPlanner.nodeSelector | object | bloom-planner pod 的节点选择器 | {}
|
bloomPlanner.persistence.annotations | object | bloom-planner PVC 的注解 | {}
|
bloomPlanner.persistence.claims | list | bloom-planner PVC 列表 |
|
bloomPlanner.persistence.claims[0].size | string | 持久卷大小 | "10Gi"
|
bloomPlanner.persistence.enableStatefulSetAutoDeletePVC | bool | 启用 StatefulSetAutoDeletePVC 功能 | false
|
bloomPlanner.persistence.enabled | bool | 为 bloom-planner 启用创建 PVC | false
|
bloomPlanner.podAnnotations | object | bloom-planner pod 的注解 | {}
|
bloomPlanner.podLabels | object | bloom-planner pod 的标签 | {}
|
bloomPlanner.priorityClassName | string | bloom-planner pod 的 PriorityClass 名称 | null
|
bloomPlanner.readinessProbe | object | ingester pod 的就绪探针设置。如果为空,则使用 loki.readinessProbe | {}
|
bloomPlanner.replicas | int | bloom-planner 的副本数量 | 0
|
bloomPlanner.resources | object | bloom-planner 的资源请求和限制 | {}
|
bloomPlanner.serviceAccount.annotations | object | bloom-planner 服务帐户的注解 | {}
|
bloomPlanner.serviceAccount.automountServiceAccountToken | bool | 将此开关设置为 false 以选择退出服务帐户的自动挂载 API 凭据 | true
|
bloomPlanner.serviceAccount.imagePullSecrets | list | bloom-planner 服务帐户的镜像拉取 secrets | []
|
bloomPlanner.serviceAccount.name | string | 用于 bloom-planner 的 ServiceAccount 名称。如果未设置且 create 为 true,则通过在通用 ServiceAccount 后附加 "-bloom-planner" 生成名称。 | null
|
bloomPlanner.serviceAnnotations | object | bloom-planner 服务的注解 | {}
|
bloomPlanner.serviceLabels | object | bloom-planner 服务的标签 | {}
|
bloomPlanner.terminationGracePeriodSeconds | int | 允许 bloom-planner 在被终止前优雅关闭的宽限期 | 30
|
bloomPlanner.tolerations | list | bloom-planner pod 的容忍度 | []
|
chunksCache.affinity | object | chunks-cache pod 的亲和性 | {}
|
chunksCache.allocatedMemory | int | 分配给 chunks-cache 用于对象存储的内存量(以 MB 为单位)。 | 8192
|
chunksCache.annotations | object | chunks-cache pod 的注解 | {}
|
chunksCache.batchSize | int | 从 chunks cache 发送和接收块的批处理大小 | 4
|
chunksCache.connectionLimit | int | 允许的最大连接数 | 16384
|
chunksCache.defaultValidity | string | 指定缓存的块在过期前应在 chunks-cache 中存储多长时间 | "0s"
|
chunksCache.enabled | bool | 指定是否应启用基于 memcached 的 chunks-cache | true
|
chunksCache.extraArgs | object | chunks-cache 的额外 CLI 参数 | {}
|
chunksCache.extraContainers | list | 要添加到 chunks-cache pod 的额外容器。 | []
|
chunksCache.extraExtendedOptions | string | 为 chunks-cache memcached 容器添加扩展选项。格式与 memcached 的 -o/--extend 标志相同。示例:extraExtendedOptions: 'tls,no_hashexpand' | ""
|
chunksCache.extraVolumeMounts | list | 要添加到 chunks-cache pod 的额外卷挂载(适用于 memcached 和 exporter 容器)。示例:extraVolumeMounts: - name: extra-volume mountPath: /etc/extra-volume readOnly: true | []
|
chunksCache.extraVolumes | list | 要添加到 chunks-cache pod 的额外卷(适用于 memcached 和 exporter 容器)。示例:extraVolumes: - name: extra-volume secret: secretName: extra-volume-secret | []
|
chunksCache.initContainers | list | chunks-cache pod 的额外 init 容器 | []
|
chunksCache.maxItemMemory | int | chunks-cache 的最大项内存(以 MB 为单位)。 | 5
|
chunksCache.nodeSelector | object | chunks-cache pod 的节点选择器 | {}
|
chunksCache.parallelism | int | 从 chunks cache 发送和接收块的并行线程数 | 5
|
chunksCache.persistence | object | chunks-cache 的持久性设置 | {
"enabled": false,
"mountPath": "/data",
"storageClass": null,
"storageSize": "10G"
}
|
chunksCache.persistence.enabled | bool | 为 chunks-cache 启用创建 PVC | false
|
chunksCache.persistence.mountPath | string | 卷挂载路径 | "/data"
|
chunksCache.persistence.storageClass | string | 要使用的存储类。如果已定义,则使用 storageClassName | null
|
chunksCache.persistence.storageSize | string | 持久卷大小,必须以 G 或 Gi 为单位 | "10G"
|
chunksCache.podAnnotations | object | chunks-cache pod 的注解 | {}
|
chunksCache.podDisruptionBudget | object | Pod 中断预算 | {
"maxUnavailable": 1
}
|
chunksCache.podLabels | object | chunks-cache pod 的标签 | {}
|
chunksCache.podManagementPolicy | string | chunks-cache pod 的管理策略 | "Parallel"
|
chunksCache.port | int | chunks-cache 服务的端口 | 11211
|
chunksCache.priorityClassName | string | chunks-cache pod 的 PriorityClass 名称 | null
|
chunksCache.replicas | int | chunks-cache 副本总数 | 1
|
chunksCache.resources | string | chunks-cache 的资源请求和限制 默认情况下,将根据 allocatedMemory 值(向下取整 (* 1.2 allocatedMemory))请求安全的内存限制。 | null
|
chunksCache.service | object | 服务注解和标签 | {
"annotations": {},
"labels": {}
}
|
chunksCache.statefulStrategy | object | 有状态 chunks-cache 策略 | {
"type": "RollingUpdate"
}
|
chunksCache.terminationGracePeriodSeconds | int | 允许 chunks-cache 在被终止前优雅关闭的宽限期 | 60
|
chunksCache.timeout | string | Memcached 操作超时时间 | "2000ms"
|
chunksCache.tolerations | list | chunks-cache pod 的容忍度 | []
|
chunksCache.topologySpreadConstraints | list | topologySpreadConstraints 允许自定义默认的 topologySpreadConstraints。它可以是如下所示的单个字典,也可以是 topologySpreadConstraints 切片。labelSelector 取自约束本身(如果存在)或由 chart 使用与服务相同的选择器生成。 | []
|
chunksCache.writebackBuffer | int | 用于缓存写回的最大对象数量 | 500000
|
chunksCache.writebackParallelism | int | 缓存写回的并行线程数 | 1
|
chunksCache.writebackSizeLimit | string | 用于缓存写回的最大内存量 | "500MB"
|
clusterLabelOverride | string | 覆盖 chart 的集群标签 | null
|
compactor | object | compactor 的配置 | {
"affinity": {
"podAntiAffinity": {
"requiredDuringSchedulingIgnoredDuringExecution": [
{
"labelSelector": {
"matchLabels": {
"app.kubernetes.io/component": "compactor"
}
},
"topologyKey": "kubernetes.io/hostname"
}
]
}
},
"appProtocol": {
"grpc": ""
},
"command": null,
"extraArgs": [],
"extraContainers": [],
"extraEnv": [],
"extraEnvFrom": [],
"extraVolumeMounts": [],
"extraVolumes": [],
"hostAliases": [],
"image": {
"registry": null,
"repository": null,
"tag": null
},
"initContainers": [],
"livenessProbe": {},
"nodeSelector": {},
"persistence": {
"annotations": {},
"claims": [
{
"name": "data",
"size": "10Gi",
"storageClass": null
}
],
"enableStatefulSetAutoDeletePVC": false,
"enabled": false,
"size": "10Gi",
"storageClass": null,
"whenDeleted": "Retain",
"whenScaled": "Retain"
},
"podAnnotations": {},
"podLabels": {},
"priorityClassName": null,
"readinessProbe": {},
"replicas": 0,
"resources": {},
"serviceAccount": {
"annotations": {},
"automountServiceAccountToken": true,
"create": false,
"imagePullSecrets": [],
"name": null
},
"serviceAnnotations": {},
"serviceLabels": {},
"terminationGracePeriodSeconds": 30,
"tolerations": []
}
|
compactor.affinity | object | compactor pod 的亲和性。 | Hard node anti-affinity |
compactor.appProtocol | object | 设置可选的 grpc 服务协议。例如:“grpc”、“http2”或“https” | {
"grpc": ""
}
|
compactor.command | string | 要执行的命令,而非 Docker 镜像中定义的命令 | null
|
compactor.extraArgs | list | compactor 的额外 CLI 参数 | []
|
compactor.extraContainers | list | 添加到 compactor pod 的容器 | []
|
compactor.extraEnv | list | 添加到 compactor pod 的环境变量 | []
|
compactor.extraEnvFrom | list | 从 secrets 或 configmaps 添加到 compactor pod 的环境变量 | []
|
compactor.extraVolumeMounts | list | 添加到 compactor pod 的卷挂载 | []
|
compactor.extraVolumes | list | 添加到 compactor pod 的卷 | []
|
compactor.hostAliases | list | 要添加的 hostAliases | []
|
compactor.image.registry | string | compactor 镜像的 Docker 注册表。覆盖 loki.image.registry | null
|
compactor.image.repository | string | compactor 镜像的 Docker 镜像仓库。覆盖 loki.image.repository | null
|
compactor.image.tag | string | compactor 镜像的 Docker 镜像标签。覆盖 loki.image.tag | null
|
compactor.initContainers | list | 添加到 compactor pod 的 Init 容器 | []
|
compactor.livenessProbe | object | ingester pod 的活跃度探针设置。如果为空,则使用 loki.livenessProbe | {}
|
compactor.nodeSelector | object | compactor pod 的节点选择器 | {}
|
compactor.persistence.annotations | object | compactor PVC 的注解 | {}
|
compactor.persistence.claims | list | compactor PVC 列表 |
|
compactor.persistence.enableStatefulSetAutoDeletePVC | bool | 启用 StatefulSetAutoDeletePVC 功能 | false
|
compactor.persistence.enabled | bool | 为 compactor 启用创建 PVC | false
|
compactor.persistence.size | string | 持久卷大小 | "10Gi"
|
compactor.persistence.storageClass | string | 要使用的存储类。如果已定义,则使用 storageClassName | null
|
compactor.podAnnotations | object | compactor pod 的注解 | {}
|
compactor.podLabels | object | compactor pod 的标签 | {}
|
compactor.priorityClassName | string | compactor pod 的 PriorityClass 名称 | null
|
compactor.readinessProbe | object | ingester pod 的就绪探针设置。如果为空,则使用 loki.readinessProbe | {}
|
compactor 的副本数量 | int | compactor.resources | 0
|
compactor 的资源请求和限制 | object | compactor.serviceAccount.annotations | {}
|
compactor 服务帐户的注解 | object | compactor.serviceAccount.automountServiceAccountToken | {}
|
compactor.serviceAccount.imagePullSecrets | bool | 将此开关设置为 false 以选择退出服务帐户的自动挂载 API 凭据 | true
|
compactor 服务帐户的镜像拉取 secrets | list | compactor.serviceAccount.name | []
|
用于 compactor 的 ServiceAccount 名称。如果未设置且 create 为 true,则通过在通用 ServiceAccount 后附加 "-compactor" 生成名称。 | string | compactor.serviceAnnotations | null
|
compactor 服务的注解 | object | compactor.serviceLabels | {}
|
compactor 服务的标签 | object | compactor.terminationGracePeriodSeconds | {}
|
允许 compactor 在被终止前优雅关闭的宽限期 | int | compactor.tolerations | 30
|
compactor pod 的容忍度 | list | deploymentMode | []
|
deploymentMode | string | 部署模式允许您指定如何部署 Loki。有 3 个选项: - SingleBinary: Loki 部署为单个二进制文件,适用于小型安装,通常没有高可用性,每天最多几十 GB。 - SimpleScalable: Loki 部署为 3 个目标:读、写和后端。适用于中型安装,比分布式更容易管理,每天最多约 1TB。 - Distributed: Loki 部署为独立的微服务。最复杂但也最强大,适用于大型安装,通常每天超过 1TB。还有 2 个用于在部署模式之间迁移的附加模式: - SingleBinary<->SimpleScalable: 从 SingleBinary 迁移到 SimpleScalable(或反之) - SimpleScalable<->Distributed: 从 SimpleScalable 迁移到 Distributed(或反之) 注意:SimpleScalable 和 Distributed 需要使用对象存储。 | "SimpleScalable"
|
distributor | object | distributor 的配置 | {
"affinity": {
"podAntiAffinity": {
"requiredDuringSchedulingIgnoredDuringExecution": [
{
"labelSelector": {
"matchLabels": {
"app.kubernetes.io/component": "distributor"
}
},
"topologyKey": "kubernetes.io/hostname"
}
]
}
},
"appProtocol": {
"grpc": ""
},
"autoscaling": {
"behavior": {
"enabled": false,
"scaleDown": {},
"scaleUp": {}
},
"customMetrics": [],
"enabled": false,
"maxReplicas": 3,
"minReplicas": 1,
"targetCPUUtilizationPercentage": 60,
"targetMemoryUtilizationPercentage": null
},
"command": null,
"extraArgs": [],
"extraContainers": [],
"extraEnv": [],
"extraEnvFrom": [],
"extraVolumeMounts": [],
"extraVolumes": [],
"hostAliases": [],
"image": {
"registry": null,
"repository": null,
"tag": null
},
"maxSurge": 0,
"maxUnavailable": null,
"nodeSelector": {},
"podAnnotations": {},
"podLabels": {},
"priorityClassName": null,
"replicas": 0,
"resources": {},
"serviceAnnotations": {},
"serviceLabels": {},
"terminationGracePeriodSeconds": 30,
"tolerations": [],
"topologySpreadConstraints": []
}
|
distributor.affinity | object | distributor pod 的亲和性。 | Hard node anti-affinity |
distributor.appProtocol | object | 向 distributor 服务添加 appProtocol 字段。这使得 distributor 可以与 istio 协议选择一起工作。 | {
"grpc": ""
}
|
distributor.appProtocol.grpc | string | 设置可选的 grpc 服务协议。例如:“grpc”、“http2”或“https” | ""
|
distributor.autoscaling.behavior.enabled | bool | 启用自动伸缩行为 | false
|
distributor.autoscaling.behavior.scaleDown | object | 定义缩容策略,必须符合 HPAScalingRules | {}
|
distributor.autoscaling.behavior.scaleUp | object | 定义扩容策略,必须符合 HPAScalingRules | {}
|
distributor.autoscaling.customMetrics | list | 允许使用 HPA/v2 schema 定义自定义指标(例如,Pod、Object 或 External metrics) | []
|
distributor.autoscaling.enabled | bool | 为 distributor 启用自动伸缩 | false
|
distributor.autoscaling.maxReplicas | int | distributor 的最大自动伸缩副本数 | 3
|
distributor.autoscaling.minReplicas | int | distributor 的最小自动伸缩副本数 | 1
|
distributor.autoscaling.targetCPUUtilizationPercentage | int | distributor 的目标 CPU 使用率百分比 | 60
|
distributor.autoscaling.targetMemoryUtilizationPercentage | string | distributor 的目标内存使用率百分比 | null
|
distributor.command | string | 要执行的命令,而非 Docker 镜像中定义的命令 | null
|
distributor.extraArgs | list | distributor 的额外 CLI 参数 | []
|
distributor.extraContainers | list | 添加到 distributor pod 的容器 | []
|
distributor.extraEnv | list | 添加到 distributor pod 的环境变量 | []
|
distributor.extraEnvFrom | list | 从 secrets 或 configmaps 添加到 distributor pod 的环境变量 | []
|
distributor.extraVolumeMounts | list | 添加到 distributor pod 的卷挂载 | []
|
distributor.extraVolumes | list | 添加到 distributor pod 的卷 | []
|
distributor.hostAliases | list | 要添加的 hostAliases | []
|
distributor.image.registry | string | distributor 镜像的 Docker 注册表。覆盖 loki.image.registry | null
|
distributor.image.repository | string | distributor 镜像的 Docker 镜像仓库。覆盖 loki.image.repository | null
|
distributor.image.tag | string | distributor 镜像的 Docker 镜像标签。覆盖 loki.image.tag | null
|
distributor.maxSurge | int | distributor pod 的最大 Surge | 0
|
distributor.maxUnavailable | string | Pod Disruption Budget 的 maxUnavailable | null
|
distributor.nodeSelector | object | distributor pod 的节点选择器 | {}
|
distributor.podAnnotations | object | distributor pod 的注解 | {}
|
distributor.podLabels | object | distributor pod 的标签 | {}
|
distributor.priorityClassName | string | distributor pod 的 PriorityClass 名称 | null
|
distributor.replicas | int | distributor 的副本数量 | 0
|
distributor.resources | object | distributor 的资源请求和限制 | {}
|
distributor.serviceAnnotations | object | distributor 服务的注解 | {}
|
distributor.serviceLabels | object | distributor 服务的标签 | {}
|
distributor.terminationGracePeriodSeconds | int | 允许 distributor 在被终止前优雅关闭的宽限期 | 30
|
distributor.tolerations | list | distributor pod 的容忍度 | []
|
distributor.topologySpreadConstraints | list | distributor pod 的拓扑分布约束 | []
|
enterprise | object | 运行 Enterprise Loki 的配置 | {
"adminApi": {
"enabled": true
},
"adminToken": {
"additionalNamespaces": [],
"secret": null
},
"canarySecret": null,
"cluster_name": null,
"config": "{{- if .Values.enterprise.adminApi.enabled }}\nadmin_client:\n {{ include \"enterprise-logs.adminAPIStorageConfig\" . | nindent 2 }}\n{{ end }}\nauth:\n type: {{ .Values.enterprise.adminApi.enabled | ternary \"enterprise\" \"trust\" }}\nauth_enabled: {{ .Values.loki.auth_enabled }}\ncluster_name: {{ include \"loki.clusterName\" . }}\nlicense:\n path: /etc/loki/license/license.jwt\n",
"enabled": false,
"externalConfigName": "",
"externalLicenseName": null,
"gelGateway": true,
"image": {
"digest": null,
"pullPolicy": "IfNotPresent",
"registry": "docker.io",
"repository": "grafana/enterprise-logs",
"tag": "3.4.1"
},
"license": {
"contents": "NOTAVALIDLICENSE"
},
"provisioner": {
"additionalTenants": [],
"affinity": {},
"annotations": {},
"enabled": true,
"env": [],
"extraVolumeMounts": [],
"hookType": "post-install",
"image": {
"digest": null,
"pullPolicy": "IfNotPresent",
"registry": "docker.io",
"repository": "grafana/enterprise-logs-provisioner",
"tag": null
},
"labels": {},
"nodeSelector": {},
"priorityClassName": null,
"provisionedSecretPrefix": null,
"securityContext": {
"fsGroup": 10001,
"runAsGroup": 10001,
"runAsNonRoot": true,
"runAsUser": 10001
},
"tolerations": []
},
"tokengen": {
"affinity": {},
"annotations": {},
"enabled": true,
"env": [],
"extraArgs": [],
"extraEnvFrom": [],
"extraVolumeMounts": [],
"extraVolumes": [],
"labels": {},
"nodeSelector": {},
"priorityClassName": "",
"securityContext": {
"fsGroup": 10001,
"runAsGroup": 10001,
"runAsNonRoot": true,
"runAsUser": 10001
},
"targetModule": "tokengen",
"tolerations": []
},
"useExternalLicense": false,
"version": "3.4.0"
}
|
enterprise.adminApi | object | 如果启用,将配置正确的 admin_client 存储。如果在运行 enterprise 时禁用,请确保 auth 设置为 type: trust ,或 auth_enabled 设置为 false 。 | {
"enabled": true
}
|
enterprise.adminToken.additionalNamespaces | list | 也要在其中创建令牌的额外命名空间。如果您的 Grafana 实例在不同的命名空间中,这将很有用 | []
|
enterprise.adminToken.secret | string | admin token secret 的替代名称,tokengen 和 provisioner 作业需要 | null
|
enterprise.canarySecret | string | 存储 canary 令牌的 secret 的替代名称 | null
|
enterprise.cluster_name | string | GEL 集群的可选名称,否则将使用 .Release.Name 集群名称必须与您的 GEL 许可证中的名称匹配 | null
|
enterprise.externalConfigName | string | 要使用的外部配置 secret 的名称 | ""
|
enterprise.externalLicenseName | string | 要使用的外部许可证 secret 的名称 | null
|
enterprise.gelGateway | bool | 使用 GEL 网关,如果为 false 将使用默认的 nginx 网关 | true
|
enterprise.image.digest | string | 用镜像摘要覆盖镜像标签 | null
|
enterprise.image.pullPolicy | string | Docker 镜像拉取策略 | "IfNotPresent"
|
enterprise.image.registry | string | Docker 注册表 | "docker.io"
|
enterprise.image.repository | string | Docker 镜像仓库 | "grafana/enterprise-logs"
|
enterprise.image.tag | string | Docker 镜像标签 | "3.4.1"
|
enterprise.license | object | Grafana Enterprise Logs 许可证 要使用 Grafana Enterprise Logs 功能,您需要提供您的 Grafana Enterprise Logs 许可证内容,可以通过提供 license.jwt 的内容,或包含您的 license.jwt 的 Kubernetes Secret 的名称。要设置许可证内容,请使用标志 `--set-file 'enterprise.license.contents=./license.jwt'` | {
"contents": "NOTAVALIDLICENSE"
}
|
enterprise.provisioner | object | provisioner 目标的配置 | {
"additionalTenants": [],
"affinity": {},
"annotations": {},
"enabled": true,
"env": [],
"extraVolumeMounts": [],
"hookType": "post-install",
"image": {
"digest": null,
"pullPolicy": "IfNotPresent",
"registry": "docker.io",
"repository": "grafana/enterprise-logs-provisioner",
"tag": null
},
"labels": {},
"nodeSelector": {},
"priorityClassName": null,
"provisionedSecretPrefix": null,
"securityContext": {
"fsGroup": 10001,
"runAsGroup": 10001,
"runAsNonRoot": true,
"runAsUser": 10001
},
"tolerations": []
}
|
enterprise.provisioner.additionalTenants | list | 要创建的附加租户。每个租户都将获得读写策略和关联的令牌。租户必须有一个名称,并且需要指定用于创建包含令牌的 Secret 的命名空间。例如 additionalTenants: - name: loki secretNamespace: grafana | []
|
enterprise.provisioner.affinity | object | tokengen Pods 的亲和性 | {}
|
enterprise.provisioner.annotations | object | provisioner Job 的附加注解 | {}
|
enterprise.provisioner.enabled | bool | 作业是否应作为部署的一部分 | true
|
enterprise.provisioner.env | list | 附加 Kubernetes 环境 | []
|
enterprise.provisioner.extraVolumeMounts | list | 要添加到 provisioner pod 的卷挂载 | []
|
enterprise.provisioner.hookType | string | 自定义作业运行时的钩子类型。默认为 post-install | "post-install"
|
enterprise.provisioner.image | object | 要使用的 Provisioner 镜像 | {
"digest": null,
"pullPolicy": "IfNotPresent",
"registry": "docker.io",
"repository": "grafana/enterprise-logs-provisioner",
"tag": null
}
|
enterprise.provisioner.image.digest | string | 用镜像摘要覆盖镜像标签 | null
|
enterprise.provisioner.image.pullPolicy | string | Docker 镜像拉取策略 | "IfNotPresent"
|
enterprise.provisioner.image.registry | string | Docker 注册表 | "docker.io"
|
enterprise.provisioner.image.repository | string | Docker 镜像仓库 | "grafana/enterprise-logs-provisioner"
|
enterprise.provisioner.image.tag | string | 覆盖镜像标签,其默认值是 chart 的 appVersion | null
|
enterprise.provisioner.labels | object | provisioner Job 的附加标签 | {}
|
enterprise.provisioner.nodeSelector | object | tokengen Pods 的节点选择器 | {}
|
enterprise.provisioner.priorityClassName | string | provisioner Job 的 PriorityClass 名称 | null
|
enterprise.provisioner.provisionedSecretPrefix | string | 存储已配置令牌的 Secret 名称 | null
|
enterprise.provisioner.securityContext | object | 以用户 enterprise-logs(uid=10001) 运行容器 | {
"fsGroup": 10001,
"runAsGroup": 10001,
"runAsNonRoot": true,
"runAsUser": 10001
}
|
enterprise.provisioner.tolerations | list | tokengen Pods 的容忍度 | []
|
enterprise.tokengen | object | tokengen 目标的配置 | {
"affinity": {},
"annotations": {},
"enabled": true,
"env": [],
"extraArgs": [],
"extraEnvFrom": [],
"extraVolumeMounts": [],
"extraVolumes": [],
"labels": {},
"nodeSelector": {},
"priorityClassName": "",
"securityContext": {
"fsGroup": 10001,
"runAsGroup": 10001,
"runAsNonRoot": true,
"runAsUser": 10001
},
"targetModule": "tokengen",
"tolerations": []
}
|
enterprise.tokengen.affinity | object | tokengen Pods 的亲和性 | {}
|
enterprise.tokengen.annotations | object | tokengen Job 的附加注解 | {}
|
enterprise.tokengen.enabled | bool | 作业是否应作为部署的一部分 | true
|
enterprise.tokengen.env | list | 附加 Kubernetes 环境 | []
|
enterprise.tokengen.extraArgs | list | tokengen 目标的附加 CLI 参数 | []
|
enterprise.tokengen.extraEnvFrom | list | 要添加到 tokengen pods 的来自 secrets 或 configmaps 的环境变量 | []
|
enterprise.tokengen.extraVolumeMounts | list | Pod 的额外卷挂载 | []
|
enterprise.tokengen.extraVolumes | list | Pod 的额外卷 | []
|
enterprise.tokengen.labels | object | tokengen Job 的附加标签 | {}
|
enterprise.tokengen.nodeSelector | object | tokengen Pods 的节点选择器 | {}
|
enterprise.tokengen.priorityClassName | string | tokengen Pods 的 PriorityClass 名称 | ""
|
enterprise.tokengen.securityContext | object | 以用户 enterprise-logs(uid=10001) 运行容器 | {
"fsGroup": 10001,
"runAsGroup": 10001,
"runAsNonRoot": true,
"runAsUser": 10001
}
|
enterprise.tokengen.targetModule | string | 要为 tokengen 加载的 Loki 模块的逗号分隔列表 | "tokengen"
|
enterprise.tokengen.tolerations | list | tokengen Job 的容忍度 | []
|
enterprise.useExternalLicense | bool | 提供外部许可证时设置为 true | false
|
enterpriseGateway | object | 如果运行企业版并使用默认的企业网关,配置在此处。 | {
"affinity": {},
"annotations": {},
"containerSecurityContext": {
"allowPrivilegeEscalation": false,
"capabilities": {
"drop": [
"ALL"
]
},
"readOnlyRootFilesystem": true
},
"env": [],
"extraArgs": {},
"extraContainers": [],
"extraEnvFrom": [],
"extraVolumeMounts": [],
"extraVolumes": [],
"hostAliases": [],
"initContainers": [],
"labels": {},
"nodeSelector": {},
"podSecurityContext": {
"fsGroup": 10001,
"runAsGroup": 10001,
"runAsNonRoot": true,
"runAsUser": 10001
},
"readinessProbe": {
"httpGet": {
"path": "/ready",
"port": "http-metrics"
},
"initialDelaySeconds": 45
},
"replicas": 1,
"resources": {},
"service": {
"annotations": {},
"labels": {},
"type": "ClusterIP"
},
"strategy": {
"type": "RollingUpdate"
},
"terminationGracePeriodSeconds": 60,
"tolerations": [],
"topologySpreadConstraints": [],
"useDefaultProxyURLs": true
}
|
enterpriseGateway.affinity | object | gateway Pods 的亲和性 | {}
|
enterpriseGateway.annotations | object | gateway Pod 的附加注解 | {}
|
enterpriseGateway.env | list | 配置可选的环境变量 | []
|
enterpriseGateway.extraArgs | object | gateway 目标的附加 CLI 参数 | {}
|
enterpriseGateway.extraContainers | list | 配置可选的 extraContainers | []
|
enterpriseGateway.extraEnvFrom | list | 要添加到企业网关 pod 的来自 secrets 或 configmaps 的环境变量 | []
|
enterpriseGateway.extraVolumeMounts | list | Pod 的额外卷挂载 | []
|
enterpriseGateway.extraVolumes | list | Pod 的额外卷 | []
|
enterpriseGateway.hostAliases | list | 要添加的 hostAliases | []
|
enterpriseGateway.initContainers | list | 配置可选的 initContainers | []
|
enterpriseGateway.labels | object | gateway Pod 的附加标签 | {}
|
enterpriseGateway.nodeSelector | object | gateway Pods 的节点选择器 | {}
|
enterpriseGateway.podSecurityContext | object | 以用户 enterprise-logs(uid=10001) 运行容器 | {
"fsGroup": 10001,
"runAsGroup": 10001,
"runAsNonRoot": true,
"runAsUser": 10001
}
|
enterpriseGateway.readinessProbe | object | 就绪探针 | {
"httpGet": {
"path": "/ready",
"port": "http-metrics"
},
"initialDelaySeconds": 45
}
|
enterpriseGateway.replicas | int | 定义实例数量 | 1
|
enterpriseGateway.resources | object | 值在 small.yaml 和 large.yaml 中定义 | {}
|
enterpriseGateway.service | object | 覆盖服务类型的 Service | {
"annotations": {},
"labels": {},
"type": "ClusterIP"
}
|
enterpriseGateway.strategy | object | 更新策略 | {
"type": "RollingUpdate"
}
|
enterpriseGateway.terminationGracePeriodSeconds | int | 允许网关在被终止前优雅关闭的宽限期 | 60
|
enterpriseGateway.tolerations | list | gateway Pods 的容忍度 | []
|
enterpriseGateway.topologySpreadConstraints | list | enterprise-gateway pod 的拓扑分布约束 | []
|
enterpriseGateway.useDefaultProxyURLs | bool | 如果您想使用自己的代理 URL,请将其设置为 false。 | true
|
extraObjects | list | []
| |
fullnameOverride | string | 覆盖 chart 计算出的 fullname | null
|
gateway.affinity | object | gateway pod 的亲和性。 | Hard node anti-affinity |
gateway.annotations | object | gateway deployment 的注解 | {}
|
gateway.autoscaling.behavior | object | 伸缩时的行为策略。 | {}
|
gateway.autoscaling.enabled | bool | 为 gateway 启用自动扩缩容 | false
|
gateway.autoscaling.maxReplicas | int | gateway 的最大自动扩缩容副本数 | 3
|
gateway.autoscaling.minReplicas | int | gateway 的最小自动扩缩容副本数 | 1
|
gateway.autoscaling.targetCPUUtilizationPercentage | int | gateway 的目标 CPU 利用率百分比 | 60
|
gateway.autoscaling.targetMemoryUtilizationPercentage | string | gateway 的目标内存利用率百分比 | null
|
gateway.basicAuth.enabled | bool | 为 gateway 启用基本认证 | false
|
gateway.basicAuth.existingSecret | string | 要使用的现有基本认证 secret。必须包含 '.htpasswd' | null
|
gateway.basicAuth.htpasswd | string | 使用 loki.tenants 列表中的指定用户创建 htpasswd 文件。如果 loki.tenants 未设置,则使用 gateway.basicAuth.username 和 gateway.basicAuth.password 。该值使用 tpl 进行模板化。覆盖此项可使用自定义 htpasswd,例如在默认设置导致高 CPU 负载的情况下。 | Either `loki.tenants` or `gateway.basicAuth.username` and `gateway.basicAuth.password`. |
gateway.basicAuth.password | string | gateway 的基本认证密码 | null
|
gateway.basicAuth.username | string | gateway 的基本认证用户名 | null
|
gateway.containerPort | int | 默认容器端口 | 8080
|
gateway.containerSecurityContext | object | gateway 容器的 SecurityContext | {
"allowPrivilegeEscalation": false,
"capabilities": {
"drop": [
"ALL"
]
},
"readOnlyRootFilesystem": true
}
|
gateway.deploymentStrategy.type | string | "RollingUpdate"
| |
gateway.dnsConfig | object | gateway pod 的 DNS 配置 | {}
|
gateway.enabled | bool | 指定是否应启用 gateway | true
|
gateway.extraArgs | list | gateway 的附加 CLI 参数 | []
|
gateway.extraContainers | list | 要添加到 gateway pod 的容器 | []
|
gateway.extraEnv | list | 要添加到 gateway pod 的环境变量 | []
|
gateway.extraEnvFrom | list | 要添加到 gateway pod 的来自 secrets 或 configmaps 的环境变量 | []
|
gateway.extraVolumeMounts | list | 要添加到 gateway pod 的卷挂载 | []
|
gateway.extraVolumes | list | 要添加到 gateway pod 的卷 | []
|
gateway.image.digest | string | 使用镜像摘要覆盖 gateway 镜像标签 | null
|
gateway.image.pullPolicy | string | gateway 镜像拉取策略 | "IfNotPresent"
|
gateway.image.registry | string | gateway 镜像的 Docker 注册表 | "docker.io"
|
gateway.image.repository | string | gateway 镜像仓库 | "nginxinc/nginx-unprivileged"
|
gateway.image.tag | string | gateway 镜像标签 | "1.27-alpine"
|
gateway.ingress.annotations | object | gateway ingress 的注解 | {}
|
gateway.ingress.enabled | bool | 指定是否应为 gateway 创建 ingress | false
|
gateway.ingress.hosts | list | gateway ingress 的主机配置,通过 tpl 函数传递以允许模板化 | [
{
"host": "gateway.loki.example.com",
"paths": [
{
"path": "/"
}
]
}
]
|
gateway.ingress.ingressClassName | string | Ingress Class 名称。Kubernetes 版本 >= 1.18 可能需要 | ""
|
gateway.ingress.labels | object | gateway ingress 的标签 | {}
|
gateway.ingress.tls | list | gateway ingress 的 TLS 配置。主机通过 tpl 函数传递以允许模板化 | [
{
"hosts": [
"gateway.loki.example.com"
],
"secretName": "loki-gateway-tls"
}
]
|
gateway.lifecycle | object | gateway 容器的生命周期 | {}
|
gateway.nginxConfig.clientMaxBodySize | string | 允许自定义 client_max_body_size 指令 | "4M"
|
gateway.nginxConfig.customBackendUrl | string | 覆盖后端 URL | null
|
gateway.nginxConfig.customReadUrl | string | 覆盖读取 URL | null
|
gateway.nginxConfig.customWriteUrl | string | 覆盖写入 URL | null
|
gateway.nginxConfig.enableIPv6 | bool | 为 IPv6 启用监听器,在仅 IPv4 系统上禁用 | true
|
gateway.nginxConfig.file | string | Nginx 的配置文件内容。通过 tpl 函数传递以允许模板化 | See values.yaml |
gateway.nginxConfig.httpSnippet | string | 允许向 http 块添加自定义配置,通过 tpl 函数传递以允许模板化 | "{{ if .Values.loki.tenants }}proxy_set_header X-Scope-OrgID $remote_user;{{ end }}"
|
gateway.nginxConfig.logFormat | string | NGINX 日志格式 | "main '$remote_addr - $remote_user [$time_local] $status '\n '\"$request\" $body_bytes_sent \"$http_referer\" '\n '\"$http_user_agent\" \"$http_x_forwarded_for\"';"
|
gateway.nginxConfig.resolver | string | 允许覆盖 nginx 将使用的 DNS 解析器地址。 | ""
|
gateway.nginxConfig.schema | string | 构建 URL 时使用的 schema。可以是 'http' 或 'https'。 | "http"
|
gateway.nginxConfig.serverSnippet | string | 允许向 server 块添加自定义配置 | ""
|
gateway.nginxConfig.ssl | bool | ssl 是否应附加到 server 块的 listen 指令。 | false
|
gateway.nodeSelector | object | gateway pod 的节点选择器 | {}
|
gateway.podAnnotations | object | gateway pod 的注解 | {}
|
gateway.podLabels | object | gateway pod 的附加标签 | {}
|
gateway.podSecurityContext | object | gateway 容器的 SecurityContext | {
"fsGroup": 101,
"runAsGroup": 101,
"runAsNonRoot": true,
"runAsUser": 101
}
|
gateway.priorityClassName | string | gateway pod 的 PriorityClass 名称 | null
|
gateway.readinessProbe.httpGet.path | string | "/"
| |
gateway.readinessProbe.httpGet.port | string | "http-metrics"
| |
gateway.readinessProbe.initialDelaySeconds | int | 15
| |
gateway.readinessProbe.timeoutSeconds | int | 1
| |
gateway.replicas | int | gateway 的副本数量 | 1
|
gateway.resources | object | gateway 的资源请求和限制 | {}
|
gateway.service.annotations | object | gateway service 的注解 | {}
|
gateway.service.clusterIP | string | gateway service 的 ClusterIP | null
|
gateway.service.labels | object | gateway service 的标签 | {}
|
gateway.service.loadBalancerIP | string | 如果服务类型是 LoadBalancer,则为负载均衡器 IP 地址 | null
|
gateway.service.nodePort | int | 如果服务类型是 NodePort,则为 Node port | null
|
gateway.service.port | int | gateway service 的端口 | 80
|
gateway.service.type | string | gateway service 的类型 | "ClusterIP"
|
gateway.terminationGracePeriodSeconds | int | 允许网关在被终止前优雅关闭的宽限期 | 30
|
gateway.tolerations | list | gateway pod 的容忍度 | []
|
gateway.topologySpreadConstraints | list | gateway pod 的拓扑分布约束 | []
|
gateway.verboseLogging | bool | 启用记录 2xx 和 3xx HTTP 请求的日志 | true
|
global.clusterDomain | string | 配置集群域(默认为 "cluster.local") | "cluster.local"
|
global.dnsNamespace | string | 配置 DNS 服务命名空间 | "kube-system"
|
global.dnsService | string | 配置 DNS 服务名称 | "kube-dns"
|
global.extraArgs | list | 所有作业的通用附加 CLI 参数(即 -log.level debug、-config.expand-env=true 或 -log-config-reverse-order)范围:admin-api, backend, bloom-builder, bloom-gateway, bloom-planner, compactor, distributor, index-gateway, ingester, overrides-exporter, pattern-ingester, querier, query-frontend, query-scheduler, read, ruler, write。 | []
|
global.extraEnv | list | 要添加到此 chart 直接管理的所有 pod 的通用环境变量。范围:admin-api, backend, bloom-builder, bloom-gateway, bloom-planner, compactor, distributor, index-gateway, ingester, overrides-exporter, pattern-ingester, querier, query-frontend, query-scheduler, read, ruler, write。 | []
|
global.extraEnvFrom | list | 要添加到此 chart 直接管理的所有 pod 的通用环境变量注入源。范围:admin-api, backend, bloom-builder, bloom-gateway, bloom-planner, compactor, distributor, index-gateway, ingester, overrides-exporter, pattern-ingester, querier, query-frontend, query-scheduler, read, ruler, write。例如,要从 Secret 注入值,请使用:extraEnvFrom: - secretRef: name: mysecret | []
|
global.extraVolumeMounts | list | 要添加到此 chart 直接管理的所有 pod 的通用挂载点。范围:admin-api, backend, bloom-builder, bloom-gateway, bloom-planner, compactor, distributor, index-gateway, ingester, overrides-exporter, pattern-ingester, querier, query-frontend, query-scheduler, read, ruler, write。 | []
|
global.extraVolumes | list | 要添加到此 chart 直接管理的所有 pod 的通用卷。范围:admin-api, backend, bloom-builder, bloom-gateway, bloom-planner, compactor, distributor, index-gateway, ingester, overrides-exporter, pattern-ingester, querier, query-frontend, query-scheduler, read, ruler, write。 | []
|
global.image.registry | string | 全局覆盖所有镜像的 Docker 注册表 | null
|
global.priorityClassName | string | 覆盖所有 pod 的 priorityClassName | null
|
imagePullSecrets | list | Docker 镜像的镜像拉取 secret | []
|
indexGateway | object | index-gateway 的配置 | {
"affinity": {
"podAntiAffinity": {
"requiredDuringSchedulingIgnoredDuringExecution": [
{
"labelSelector": {
"matchLabels": {
"app.kubernetes.io/component": "index-gateway"
}
},
"topologyKey": "kubernetes.io/hostname"
}
]
}
},
"appProtocol": {
"grpc": ""
},
"extraArgs": [],
"extraContainers": [],
"extraEnv": [],
"extraEnvFrom": [],
"extraVolumeMounts": [],
"extraVolumes": [],
"hostAliases": [],
"image": {
"registry": null,
"repository": null,
"tag": null
},
"initContainers": [],
"joinMemberlist": true,
"maxUnavailable": null,
"nodeSelector": {},
"persistence": {
"annotations": {},
"enableStatefulSetAutoDeletePVC": false,
"enabled": false,
"inMemory": false,
"size": "10Gi",
"storageClass": null,
"whenDeleted": "Retain",
"whenScaled": "Retain"
},
"podAnnotations": {},
"podLabels": {},
"priorityClassName": null,
"replicas": 0,
"resources": {},
"serviceAnnotations": {},
"serviceLabels": {},
"terminationGracePeriodSeconds": 300,
"tolerations": [],
"topologySpreadConstraints": [],
"updateStrategy": {
"type": "RollingUpdate"
}
}
|
indexGateway.affinity | object | index-gateway pod 的亲和性。 | Hard node anti-affinity |
indexGateway.appProtocol | object | 设置可选的 grpc 服务协议。例如:“grpc”、“http2”或“https” | {
"grpc": ""
}
|
indexGateway.extraArgs | list | index-gateway 的附加 CLI 参数 | []
|
indexGateway.extraContainers | list | 要添加到 index-gateway pod 的容器 | []
|
indexGateway.extraEnv | list | 要添加到 index-gateway pod 的环境变量 | []
|
indexGateway.extraEnvFrom | list | 要添加到 index-gateway pod 的来自 secrets 或 configmaps 的环境变量 | []
|
indexGateway.extraVolumeMounts | list | 要添加到 index-gateway pod 的卷挂载 | []
|
indexGateway.extraVolumes | list | 要添加到 index-gateway pod 的卷 | []
|
indexGateway.hostAliases | list | 要添加的 hostAliases | []
|
indexGateway.image.registry | string | index-gateway 镜像的 Docker 注册表。覆盖 loki.image.registry | null
|
indexGateway.image.repository | string | index-gateway 镜像的 Docker 镜像仓库。覆盖 loki.image.repository | null
|
indexGateway.image.tag | string | index-gateway 镜像的 Docker 镜像标签。覆盖 loki.image.tag | null
|
indexGateway.initContainers | list | 要添加到 index-gateway pod 的 Init 容器 | []
|
indexGateway.joinMemberlist | bool | index gateway 是否应加入 memberlist hashring | true
|
indexGateway.maxUnavailable | string | Pod Disruption Budget 的 maxUnavailable | null
|
indexGateway.nodeSelector | object | index-gateway pod 的节点选择器 | {}
|
indexGateway.persistence.annotations | object | index gateway PVC 的注解 | {}
|
indexGateway.persistence.enableStatefulSetAutoDeletePVC | bool | 启用 StatefulSetAutoDeletePVC 功能 | false
|
indexGateway.persistence.enabled | bool | 启用创建 PVC,使用 boltdb-shipper 时需要 | false
|
indexGateway.persistence.inMemory | bool | 使用带有 ramdisk 的 emptyDir 进行存储。**请注意,indexGateway 中的所有数据将在 pod 重启时丢失** | false
|
indexGateway.persistence.size | string | 持久或内存磁盘的大小 | "10Gi"
|
indexGateway.persistence.storageClass | string | 要使用的存储类。如果已定义,则使用 storageClassName | null
|
indexGateway.podAnnotations | object | index-gateway pod 的注解 | {}
|
indexGateway.podLabels | object | index-gateway pod 的标签 | {}
|
indexGateway.priorityClassName | string | index-gateway pod 的 PriorityClass 名称 | null
|
indexGateway.replicas | int | index-gateway 的副本数量 | 0
|
indexGateway.resources | object | index-gateway 的资源请求和限制 | {}
|
indexGateway.serviceAnnotations | object | index-gateway service 的注解 | {}
|
indexGateway.serviceLabels | object | index-gateway service 的标签 | {}
|
indexGateway.terminationGracePeriodSeconds | int | 允许 index-gateway 在被终止前优雅关闭的宽限期。 | 300
|
indexGateway.tolerations | list | index-gateway pod 的容忍度 | []
|
indexGateway.topologySpreadConstraints | list | index-gateway pod 的拓扑分布约束 | []
|
indexGateway.updateStrategy | object | indexGateway StatefulSet 的 UpdateStrategy。 | {
"type": "RollingUpdate"
}
|
indexGateway.updateStrategy.type | string | 'OnDelete' 或 'RollingUpdate' 之一 | "RollingUpdate"
|
ingester | object | ingester 的配置 | {
"addIngesterNamePrefix": false,
"affinity": {
"podAntiAffinity": {
"requiredDuringSchedulingIgnoredDuringExecution": [
{
"labelSelector": {
"matchLabels": {
"app.kubernetes.io/component": "ingester"
}
},
"topologyKey": "kubernetes.io/hostname"
}
]
}
},
"appProtocol": {
"grpc": ""
},
"autoscaling": {
"behavior": {
"enabled": false,
"scaleDown": {},
"scaleUp": {}
},
"customMetrics": [],
"enabled": false,
"maxReplicas": 3,
"minReplicas": 1,
"targetCPUUtilizationPercentage": 60,
"targetMemoryUtilizationPercentage": null
},
"command": null,
"extraArgs": [],
"extraContainers": [],
"extraEnv": [],
"extraEnvFrom": [],
"extraVolumeMounts": [],
"extraVolumes": [],
"hostAliases": [],
"image": {
"registry": null,
"repository": null,
"tag": null
},
"initContainers": [],
"lifecycle": {},
"livenessProbe": {},
"maxUnavailable": 1,
"nodeSelector": {},
"persistence": {
"claims": [
{
"name": "data",
"size": "10Gi",
"storageClass": null
}
],
"enableStatefulSetAutoDeletePVC": false,
"enabled": false,
"inMemory": false,
"whenDeleted": "Retain",
"whenScaled": "Retain"
},
"podAnnotations": {},
"podLabels": {},
"priorityClassName": null,
"readinessProbe": {},
"replicas": 0,
"resources": {},
"rolloutGroupPrefix": null,
"serviceAnnotations": {},
"serviceLabels": {},
"terminationGracePeriodSeconds": 300,
"tolerations": [],
"topologySpreadConstraints": [
{
"labelSelector": {
"matchLabels": {
"app.kubernetes.io/component": "ingester"
}
},
"maxSkew": 1,
"topologyKey": "kubernetes.io/hostname",
"whenUnsatisfiable": "ScheduleAnyway"
}
],
"updateStrategy": {
"type": "RollingUpdate"
},
"zoneAwareReplication": {
"enabled": true,
"maxUnavailablePct": 33,
"migration": {
"enabled": false,
"excludeDefaultZone": false,
"readPath": false,
"writePath": false
},
"zoneA": {
"annotations": {},
"extraAffinity": {},
"nodeSelector": null,
"podAnnotations": {}
},
"zoneB": {
"annotations": {},
"extraAffinity": {},
"nodeSelector": null,
"podAnnotations": {}
},
"zoneC": {
"annotations": {},
"extraAffinity": {},
"nodeSelector": null,
"podAnnotations": {}
}
}
}
|
ingester.affinity | object | ingester pod 的亲和性。如果 zoneAwareReplication 启用则忽略。 | Hard node anti-affinity |
ingester.appProtocol | object | 将 appProtocol 字段添加到 ingester service。这使得 ingester 可以与 istio 协议选择一起工作。 | {
"grpc": ""
}
|
ingester.appProtocol.grpc | string | 设置可选的 grpc 服务协议。例如:“grpc”、“http2”或“https” | ""
|
ingester.autoscaling.behavior.enabled | bool | 启用自动伸缩行为 | false
|
ingester.autoscaling.behavior.scaleDown | object | 定义缩容策略,必须符合 HPAScalingRules | {}
|
ingester.autoscaling.behavior.scaleUp | object | 定义扩容策略,必须符合 HPAScalingRules | {}
|
ingester.autoscaling.customMetrics | list | 允许使用 HPA/v2 schema 定义自定义指标(例如,Pod、Object 或 External metrics) | []
|
ingester.autoscaling.enabled | bool | 为 ingester 启用自动扩缩容 | false
|
ingester.autoscaling.maxReplicas | int | ingester 的最大自动扩缩容副本数 | 3
|
ingester.autoscaling.minReplicas | int | ingester 的最小自动扩缩容副本数 | 1
|
ingester.autoscaling.targetCPUUtilizationPercentage | int | ingester 的目标 CPU 利用率百分比 | 60
|
ingester.autoscaling.targetMemoryUtilizationPercentage | string | ingester 的目标内存利用率百分比 | null
|
ingester.command | string | 要执行的命令,而非 Docker 镜像中定义的命令 | null
|
ingester.extraArgs | list | ingester 的附加 CLI 参数 | []
|
ingester.extraContainers | list | 要添加到 ingester pod 的容器 | []
|
ingester.extraEnv | list | 要添加到 ingester pod 的环境变量 | []
|
ingester.extraEnvFrom | list | 要添加到 ingester pod 的来自 secrets 或 configmaps 的环境变量 | []
|
ingester.extraVolumeMounts | list | 要添加到 ingester pod 的卷挂载 | []
|
ingester.extraVolumes | list | 要添加到 ingester pod 的卷 | []
|
ingester.hostAliases | list | 要添加的 hostAliases | []
|
ingester.image.registry | string | ingester 镜像的 Docker 注册表。覆盖 loki.image.registry | null
|
ingester.image.repository | string | ingester 镜像的 Docker 镜像仓库。覆盖 loki.image.repository | null
|
ingester.image.tag | string | ingester 镜像的 Docker 镜像标签。覆盖 loki.image.tag | null
|
ingester.initContainers | list | 要添加到 ingester pod 的 Init 容器 | []
|
ingester.lifecycle | object | ingester 容器的生命周期 | {}
|
ingester.livenessProbe | object | ingester pod 的活跃度探针设置。如果为空,则使用 loki.livenessProbe | {}
|
ingester.maxUnavailable | int | Pod Disruption Budget 的 maxUnavailable | 1
|
ingester.nodeSelector | object | ingester pod 的节点选择器 | {}
|
ingester.persistence.claims | list | ingester PVC 列表 |
|
ingester.persistence.enableStatefulSetAutoDeletePVC | bool | 启用 StatefulSetAutoDeletePVC 功能 | false
|
ingester.persistence.enabled | bool | 启用创建 PVC,使用 boltdb-shipper 时需要 | false
|
ingester.persistence.inMemory | bool | 使用带有 ramdisk 的 emptyDir 进行存储。**请注意,ingester 中的所有数据将在 pod 重启时丢失** | false
|
ingester.podAnnotations | object | ingester pod 的注解 | {}
|
ingester.podLabels | object | ingester pod 的标签 | {}
|
ingester.readinessProbe | object | ingester pod 的就绪探针设置。如果为空,则使用 loki.readinessProbe | {}
|
ingester.replicas | int | ingester 的副本数量,当 zoneAwareReplication.enabled 为 true 时,副本总数将与此值匹配,每个可用区拥有总副本数的 1/3。 | 0
|
ingester.resources | object | ingester 的资源请求和限制 | {}
|
ingester.serviceAnnotations | object | ingestor service 的注解 | {}
|
ingester.serviceLabels | object | ingestor service 的标签 | {}
|
ingester.terminationGracePeriodSeconds | int | 允许 ingester 在被终止前优雅关闭的宽限期。特别是对于 ingestor,必须增加此值。它必须足够长,以便 ingester 能够优雅地关闭,刷新/传输所有数据,并在关闭时成功离开成员环。 | 300
|
ingester.tolerations | list | ingester pod 的容忍度 | []
|
ingester.topologySpreadConstraints | list | ingester pod 的 topologySpread。 | Defaults to allow skew no more than 1 node |
ingester.updateStrategy | object | ingester StatefulSets 的 UpdateStrategy。 | {
"type": "RollingUpdate"
}
|
ingester.updateStrategy.type | string | 'OnDelete' 或 'RollingUpdate' 之一 | "RollingUpdate"
|
ingester.zoneAwareReplication | object | ingester.zoneAwareReplication | {
"enabled": true,
"maxUnavailablePct": 33,
"migration": {
"enabled": false,
"excludeDefaultZone": false,
"readPath": false,
"writePath": false
},
"zoneA": {
"annotations": {},
"extraAffinity": {},
"nodeSelector": null,
"podAnnotations": {}
},
"zoneB": {
"annotations": {},
"extraAffinity": {},
"nodeSelector": null,
"podAnnotations": {}
},
"zoneC": {
"annotations": {},
"extraAffinity": {},
"nodeSelector": null,
"podAnnotations": {}
}
}
|
在 ingesters 上启用可用区感知将创建 3 个 StatefulSet,其中所有写入都会将副本发送到每个可用区。这主要旨在通过允许单个可用区内的多个 ingesters 同时关闭和重启来加速 rollout 操作(其余 2 个可用区将保证至少有一个数据副本)。注意:这可用于跨多个云提供商可用区运行 Loki,但目前不推荐这样做,因为 Loki 未针对此进行优化,并且跨可用区网络流量成本可能非常快速地变得非常高。即使启用了可用区感知,仍建议在单个可用区中运行 Loki。 | bool | ingester.zoneAwareReplication.enabled | true
|
启用可用区感知。 | int | ingester.zoneAwareReplication.maxUnavailablePct | 33
|
每个可用区中将一次性重启的副本百分比。值为 0-100 | object | ingester.zoneAwareReplication.migration | {
"enabled": false,
"excludeDefaultZone": false,
"readPath": false,
"writePath": false
}
|
迁移块允许将非可用区感知的 ingesters 迁移到可用区感知的 ingesters。 | object | ingester.zoneAwareReplication.zoneA | {
"annotations": {},
"extraAffinity": {},
"nodeSelector": null,
"podAnnotations": {}
}
|
zoneA 配置 | object | ingester.zoneAwareReplication.zoneA.annotations | {}
|
要添加到 zone A StatefulSet 的特定注解 | object | ingester.zoneAwareReplication.zoneA.extraAffinity | {}
|
可选地定义额外的亲和性规则,默认情况下不允许不同可用区调度到同一主机上 | string | ingester.zoneAwareReplication.zoneA.nodeSelector | null
|
可选地为此可用区定义节点选择器 | object | ingester.zoneAwareReplication.zoneA.podAnnotations | {}
|
要添加到 zone A pod 的特定注解 | object | ingester.zoneAwareReplication.zoneB.annotations | {}
|
要添加到 zone B StatefulSet 的特定注解 | object | ingester.zoneAwareReplication.zoneA.extraAffinity | {}
|
ingester.zoneAwareReplication.zoneB.extraAffinity | string | ingester.zoneAwareReplication.zoneA.nodeSelector | null
|
ingester.zoneAwareReplication.zoneB.nodeSelector | object | ingester.zoneAwareReplication.zoneB.podAnnotations | {}
|
要添加到 zone B pod 的特定注解 | object | ingester.zoneAwareReplication.zoneC.annotations | {}
|
要添加到 zone C StatefulSet 的特定注解 | object | ingester.zoneAwareReplication.zoneA.extraAffinity | {}
|
ingester.zoneAwareReplication.zoneC.extraAffinity | string | ingester.zoneAwareReplication.zoneA.nodeSelector | null
|
ingester.zoneAwareReplication.zoneC.nodeSelector | object | ingester.zoneAwareReplication.zoneC.podAnnotations | {}
|
要添加到 zone C pod 的特定注解 | object | ingress | {
"annotations": {},
"enabled": false,
"hosts": [
"loki.example.com"
],
"ingressClassName": "",
"labels": {},
"paths": {
"distributor": [
"/api/prom/push",
"/loki/api/v1/push",
"/otlp/v1/logs"
],
"queryFrontend": [
"/api/prom/query",
"/api/prom/label",
"/api/prom/series",
"/api/prom/tail",
"/loki/api/v1/query",
"/loki/api/v1/query_range",
"/loki/api/v1/tail",
"/loki/api/v1/label",
"/loki/api/v1/labels",
"/loki/api/v1/series",
"/loki/api/v1/index/stats",
"/loki/api/v1/index/volume",
"/loki/api/v1/index/volume_range",
"/loki/api/v1/format_query",
"/loki/api/v1/detected_field",
"/loki/api/v1/detected_fields",
"/loki/api/v1/detected_labels",
"/loki/api/v1/patterns"
],
"ruler": [
"/api/prom/rules",
"/api/prom/api/v1/rules",
"/api/prom/api/v1/alerts",
"/loki/api/v1/rules",
"/prometheus/api/v1/rules",
"/prometheus/api/v1/alerts"
]
},
"tls": []
}
|
Ingress 配置。可以使用此 ingress 或 gateway,但不能同时使用两者。如果启用此项,请确保禁用 gateway。您需要为 ingress 控制器提供认证配置。 | list | ingress.hosts | [
"loki.example.com"
]
|
ingress 的主机配置,通过 tpl 函数传递以允许模板化 | list | ingress.paths.distributor | [
"/api/prom/push",
"/loki/api/v1/push",
"/otlp/v1/logs"
]
|
Loki Distributor 公开的路径。如果部署模式是 Distributed,请求将转发到服务:{{"loki.distributorFullname"}} 。如果部署模式是 SimpleScalable,请求将转发到写 k8s 服务:{{"loki.writeFullname"}} 。如果部署模式是 SingleBinary,请求将转发到中心/单个 k8s 服务:{{"loki.singleBinaryFullname"}} | list | ingress.paths.queryFrontend | [
"/api/prom/query",
"/api/prom/label",
"/api/prom/series",
"/api/prom/tail",
"/loki/api/v1/query",
"/loki/api/v1/query_range",
"/loki/api/v1/tail",
"/loki/api/v1/label",
"/loki/api/v1/labels",
"/loki/api/v1/series",
"/loki/api/v1/index/stats",
"/loki/api/v1/index/volume",
"/loki/api/v1/index/volume_range",
"/loki/api/v1/format_query",
"/loki/api/v1/detected_field",
"/loki/api/v1/detected_fields",
"/loki/api/v1/detected_labels",
"/loki/api/v1/patterns"
]
|
Loki Query Frontend 公开的路径。如果部署模式是 Distributed,请求将转发到服务:{{"loki.queryFrontendFullname"}} 。如果部署模式是 SimpleScalable,请求将转发到写 k8s 服务:{{"loki.readFullname"}} 。如果部署模式是 SingleBinary,请求将转发到中心/单个 k8s 服务:{{"loki.singleBinaryFullname"}} | list | ingress.paths.ruler | [
"/api/prom/rules",
"/api/prom/api/v1/rules",
"/api/prom/api/v1/alerts",
"/loki/api/v1/rules",
"/prometheus/api/v1/rules",
"/prometheus/api/v1/alerts"
]
|
Loki Ruler 公开的路径。如果部署模式是 Distributed,请求将转发到服务:{{"loki.rulerFullname"}} 。如果部署模式是 SimpleScalable,请求将转发到 k8s 服务:{{"loki.backendFullname"}} 。如果部署模式是 SimpleScalable 但 read.legacyReadTarget 为 true ,请求将转发到 k8s 服务:{{"loki.readFullname"}} 。如果部署模式是 SingleBinary,请求将转发到中心/单个 k8s 服务:{{"loki.singleBinaryFullname"}} | list | ingress.tls | []
|
ingress 的 TLS 配置。主机通过 tpl 函数传递以允许模板化 | string | kubeVersionOverride | null
|
覆盖用于确定资源与目标 Kubernetes 集群兼容性的版本。这在使用 helm template 时很有用,因为 helm 会将 kubectl 的客户端版本用作 Kubernetes 版本,这可能与您集群的服务器版本匹配或不匹配。示例:'v1.24.4'。设置为 null 以使用 helm 推导的版本。 | object | kubectlImage | {
"digest": null,
"pullPolicy": "IfNotPresent",
"registry": "docker.io",
"repository": "bitnami/kubectl",
"tag": null
}
|
kubetclImage 在企业版 provisioner 和 tokengen 作业中使用 | string | 用镜像摘要覆盖镜像标签 | null
|
kubectlImage.digest | string | Docker 镜像拉取策略 | "IfNotPresent"
|
kubectlImage.pullPolicy | string | Docker 注册表 | "docker.io"
|
kubectlImage.registry | string | Docker 镜像仓库 | "bitnami/kubectl"
|
kubectlImage.repository | string | 覆盖镜像标签,其默认值是 chart 的 appVersion | null
|
kubectlImage.tag | object | loki | See values.yaml |
运行 Loki 的配置 | object | loki.analytics | {}
|
可选的分析配置 | object | loki.annotations | {}
|
所有部署/StatefulSet 的通用注解 | object | loki.commonConfig | {
"compactor_address": "{{ include \"loki.compactorAddress\" . }}",
"path_prefix": "/var/loki",
"replication_factor": 3
}
|
查看 https://grafana.org.cn/docs/loki/latest/configuration/#common_config 了解如何提供通用配置的更多信息 | object | loki.compactor | {}
|
可选的 compactor 配置 | string | loki.config | See values.yaml |
Loki 的配置文件内容 | string | loki.configObjectName | "{{ include \"loki.name\" . }}"
|
Loki 将挂载为包含配置的卷的对象的名称。如果 configStorageType 是 Secret,这将是 Secret 的名称;如果它是 ConfigMap,这将是 ConfigMap 的名称。该值将通过 tpl 传递。 | string | loki.configStorageType | "ConfigMap"
|
定义存储配置的对象类型,ConfigMap 或 Secret。为了将敏感信息(如凭据)从 ConfigMap/Secret 移动到更安全的位置(例如 vault),可以使用配置中的环境变量。然后可以将这些环境变量存储在单独的 Secret 中,并通过 global.extraEnvFrom 值注入。有关从 Secret 注入环境变量的详细信息,请参阅Secrets。 | object | loki.containerSecurityContext | {
"allowPrivilegeEscalation": false,
"capabilities": {
"drop": [
"ALL"
]
},
"readOnlyRootFilesystem": true
}
|
Loki 容器的 SecurityContext | object | loki.distributor | {}
|
可选的 distributor 配置 | bool | loki.enableServiceLinks | true
|
是否应启用 enableServiceLinks。默认为启用 | object | loki.extraMemberlistConfig | {}
|
额外的 memberlist 配置 | string | loki.generatedConfigObjectName | "{{ include \"loki.name\" . }}"
|
此 chart 将创建的 Secret 或 ConfigMap 的名称。如果为空,则不会创建 ConfigMap 或 Secret。该值将通过 tpl 传递。 | string | 用镜像摘要覆盖镜像标签 | null
|
loki.image.digest | string | Docker 镜像拉取策略 | "IfNotPresent"
|
loki.image.pullPolicy | string | Docker 注册表 | "docker.io"
|
loki.image.registry | string | Docker 镜像仓库 | "grafana/loki"
|
loki.image.repository | string | 覆盖镜像标签,其默认值是 chart 的 appVersion | "3.4.2"
|
loki.image.tag | object | loki.index_gateway | {
"mode": "simple"
}
|
可选的 index gateway 配置 | object | loki.ingester | {}
|
可选的 ingester 配置 | object | loki.limits_config | {
"max_cache_freshness_per_query": "10m",
"query_timeout": "300s",
"reject_old_samples": true,
"reject_old_samples_max_age": "168h",
"split_queries_by_interval": "15m",
"volume_enabled": true
}
|
限制配置 | object | loki.memberlistConfig | {}
|
memberlist 配置(覆盖嵌入的默认值) | object | loki.memcached | {
"chunk_cache": {
"batch_size": 256,
"enabled": false,
"host": "",
"parallelism": 10,
"service": "memcached-client"
},
"results_cache": {
"default_validity": "12h",
"enabled": false,
"host": "",
"service": "memcached-client",
"timeout": "500ms"
}
}
|
配置 memcached 作为 chunk 和结果缓存的外部缓存。默认禁用,必须启用并为每个要使用的缓存指定主机。 | object | loki.pattern_ingester | {
"enabled": false
}
|
可选的 pattern ingester 配置 | object | loki.podAnnotations | {}
|
所有 pod 的通用注解 | object | loki.podLabels | {}
|
所有 pod 的通用标签 | object | loki.podSecurityContext | {
"fsGroup": 10001,
"runAsGroup": 10001,
"runAsNonRoot": true,
"runAsUser": 10001
}
|
Loki pod 的 SecurityContext | object | loki.querier | {}
|
可选的 querier 配置 | object | loki.querier | {}
|
loki.query_range | object | loki.query_scheduler | {}
|
附加的 query scheduler 配置 | int | loki.revisionHistoryLimit | 10
|
要保留的旧 ReplicaSet 数量,以允许回滚 | object | loki.rulerConfig | {
"wal": {
"dir": "/var/loki/ruler-wal"
}
}
|
查看 https://grafana.org.cn/docs/loki/latest/configuration/#ruler 了解配置 ruler 的更多信息 | object | loki.runtimeConfig | {}
|
为某些特定配置提供一个可热加载的运行时配置文件 | object | loki.schemaConfig | {}
|
查看 https://grafana.org.cn/docs/loki/latest/configuration/#schema_config 了解如何配置 schema 的更多信息 | object | loki.server | {
"grpc_listen_port": 9095,
"http_listen_port": 3100,
"http_server_read_timeout": "600s",
"http_server_write_timeout": "600s"
}
|
查看 https://grafana.org.cn/docs/loki/latest/configuration/#server 了解服务器配置的更多信息。 | object | loki.serviceAnnotations | {}
|
所有服务的通用注解 | object | loki.serviceLabels | {}
|
所有服务的通用标签 | object | loki.storage | {
"azure": {
"accountKey": null,
"accountName": null,
"chunkDelimiter": null,
"connectionString": null,
"endpointSuffix": null,
"requestTimeout": null,
"useFederatedToken": false,
"useManagedIdentity": false,
"userAssignedId": null
},
"filesystem": {
"admin_api_directory": "/var/loki/admin",
"chunks_directory": "/var/loki/chunks",
"rules_directory": "/var/loki/rules"
},
"gcs": {
"chunkBufferSize": 0,
"enableHttp2": true,
"requestTimeout": "0s"
},
"object_store": {
"azure": {
"account_key": null,
"account_name": null
},
"gcs": {
"bucket_name": null,
"service_account": null
},
"s3": {
"access_key_id": null,
"endpoint": null,
"http": {},
"insecure": false,
"region": null,
"secret_access_key": null,
"sse": {}
},
"storage_prefix": null,
"type": "s3"
},
"s3": {
"accessKeyId": null,
"backoff_config": {},
"disable_dualstack": false,
"endpoint": null,
"http_config": {},
"insecure": false,
"region": null,
"s3": null,
"s3ForcePathStyle": false,
"secretAccessKey": null,
"signatureVersion": null
},
"swift": {
"auth_url": null,
"auth_version": null,
"connect_timeout": null,
"container_name": null,
"domain_id": null,
"domain_name": null,
"internal": null,
"max_retries": null,
"password": null,
"project_domain_id": null,
"project_domain_name": null,
"project_id": null,
"project_name": null,
"region_name": null,
"request_timeout": null,
"user_domain_id": null,
"user_domain_name": null,
"user_id": null,
"username": null
},
"type": "s3",
"use_thanos_objstore": false
}
|
如果使用 thanos 存储,请启用 use_thanos_objstore,配置应在 object_store 部分进行。 | object | loki.storage.s3.backoff_config | {}
|
查看 https://grafana.org.cn/docs/loki/latest/configure/#s3_storage_config 了解如何提供 backoff_config 的更多信息 | object | loki.storage_config | {
"bloom_shipper": {
"working_directory": "/var/loki/data/bloomshipper"
},
"boltdb_shipper": {
"index_gateway_client": {
"server_address": "{{ include \"loki.indexGatewayAddress\" . }}"
}
},
"hedging": {
"at": "250ms",
"max_per_second": 20,
"up_to": 3
},
"tsdb_shipper": {
"index_gateway_client": {
"server_address": "{{ include \"loki.indexGatewayAddress\" . }}"
}
}
}
|
附加存储配置 | object | loki.structuredConfig | {}
|
结构化的 loki 配置,优先于 loki.config 、loki.schemaConfig 、loki.storageConfig | list | loki.tenants | []
|
要在 nginx htpasswd 文件中创建的租户列表,包含 name 和 password 键 | object | loki.tracing | {
"enabled": false
}
|
启用追踪 | object | loki.ui | {
"enabled": false,
"gateway": {
"enabled": true
}
}
|
可选的 Loki UI:为 Loki 分布式提供操作员 UI 访问权限。启用后,UI 将在 loki-gateway 的 /ui/ 可用 | bool | loki.useTestSchema | false
|
一个真正的 Loki 安装需要在此上方定义一个 proper schemaConfig,但为了测试或玩耍,您可以启用 useTestSchema | object | lokiCanary.annotations | {}
|
loki-canary Daemonset 的附加注解 | object | lokiCanary.dnsConfig | {}
|
canary pod 的 DNS 配置 | bool | true
| |
lokiCanary.enabled | list | lokiCanary.extraArgs | []
|
loki-canary' 命令的附加 CLI 参数 | list | lokiCanary.extraEnv | []
|
要添加到 canary pod 的环境变量 | list | lokiCanary.extraEnvFrom | []
|
要添加到 canary pod 的来自 secrets 或 configmaps 的环境变量 | list | lokiCanary.extraVolumeMounts | []
|
要添加到 canary pod 的卷挂载 | list | lokiCanary.extraVolumes | []
|
要添加到 canary pod 的卷 | object | lokiCanary.image | {
"digest": null,
"pullPolicy": "IfNotPresent",
"registry": "docker.io",
"repository": "grafana/loki-canary",
"tag": null
}
|
用于 loki canary 的镜像 | string | 用镜像摘要覆盖镜像标签 | null
|
lokiCanary.image.digest | string | Docker 镜像拉取策略 | "IfNotPresent"
|
lokiCanary.image.pullPolicy | string | Docker 注册表 | "docker.io"
|
lokiCanary.image.registry | string | Docker 镜像仓库 | "grafana/loki-canary"
|
lokiCanary.image.repository | string | 覆盖镜像标签,其默认值是 chart 的 appVersion | null
|
lokiCanary.image.tag | string | lokiCanary.labelname | "pod"
|
执行检查时在 loki 中查找的标签名称。 | object | lokiCanary.nodeSelector | {}
|
canary pod 的节点选择器 | object | lokiCanary.podLabels | {}
|
每个 loki-canary pod 的附加标签 | string | lokiCanary.priorityClassName | null
|
loki-canary pod 的 PriorityClass 名称 | bool | true
| |
lokiCanary.push | object | lokiCanary.resources | {}
|
canary 的资源请求和限制 | object | lokiCanary.service.annotations | {}
|
loki-canary Service 的注解 | object | lokiCanary.service.labels | {}
|
loki-canary Service 的附加标签 | list | lokiCanary.tolerations | []
|
canary pod 的容忍度 | object | lokiCanary.updateStrategy | {
"rollingUpdate": {
"maxUnavailable": 1
},
"type": "RollingUpdate"
}
|
loki-canary Daemonset pod 的更新策略 | object | {}
| |
memberlist.service.annotations | bool | false
| |
memberlist.service.publishNotReadyAddresses | object | memcached.containerSecurityContext | {
"allowPrivilegeEscalation": false,
"capabilities": {
"drop": [
"ALL"
]
},
"readOnlyRootFilesystem": true
}
|
memcached 容器的 SecurityContext | string | memcached.image.pullPolicy | "IfNotPresent"
|
Memcached Docker 镜像拉取策略 | string | memcached.image.repository | "memcached"
|
Memcached Docker 镜像仓库 | string | memcached.image.tag | "1.6.38-alpine"
|
Memcached Docker 镜像标签 | object | memcached.podSecurityContext | {
"fsGroup": 11211,
"runAsGroup": 11211,
"runAsNonRoot": true,
"runAsUser": 11211
}
|
memcached pod 的 SecurityContext 覆盖 | string | memcached.priorityClassName | null
|
memcached pod 的 PriorityClass 名称 | object | memcachedExporter.containerSecurityContext | {
"allowPrivilegeEscalation": false,
"capabilities": {
"drop": [
"ALL"
]
},
"readOnlyRootFilesystem": true
}
|
memcached exporter 容器的 SecurityContext | bool | memcachedExporter.enabled | true
|
是否应导出 memcached 指标 | object | memcachedExporter.extraArgs | {}
|
要添加到 exporter 容器的额外参数。示例:extraArgs: memcached.tls.enable: true memcached.tls.cert-file: /certs/cert.crt memcached.tls.key-file: /certs/cert.key memcached.tls.ca-file: /certs/ca.crt memcached.tls.insecure-skip-verify: false memcached.tls.server-name: memcached | string | "IfNotPresent"
| |
memcachedExporter.image.pullPolicy | string | "prom/memcached-exporter"
| |
memcachedExporter.image.repository | string | "v0.15.2"
| |
memcachedExporter.image.tag | object | {}
| |
memcachedExporter.resources.limits | object | {}
| |
memcachedExporter.resources.requests | object | migrate | {
"fromDistributed": {
"enabled": false,
"memberlistService": ""
}
}
|
从另一个 helm chart 进行迁移时可能需要的选项 | object | migrate.fromDistributed | {
"enabled": false,
"memberlistService": ""
}
|
从分布式 chart(如 loki-distributed 或 enterprise-logs)迁移时 | bool | migrate.fromDistributed.enabled | false
|
如果从分布式 helm chart 迁移,设置为 true | string | migrate.fromDistributed.memberlistService | ""
|
如果从分布式服务迁移,请提供分布式部署的 memberlist service DNS,以便新部署可以加入其 ring。 | object | minio | {
"address": null,
"buckets": [
{
"name": "chunks",
"policy": "none",
"purge": false
},
{
"name": "ruler",
"policy": "none",
"purge": false
},
{
"name": "admin",
"policy": "none",
"purge": false
}
],
"drivesPerNode": 2,
"enabled": false,
"persistence": {
"annotations": {},
"size": "5Gi"
},
"replicas": 1,
"resources": {
"requests": {
"cpu": "100m",
"memory": "128Mi"
}
},
"rootPassword": "supersecretpassword",
"rootUser": "root-user",
"users": [
{
"accessKey": "logs-user",
"policy": "readwrite",
"secretKey": "supersecretpassword"
}
]
}
|
minio subchart 的配置 | object | monitoring | {
"dashboards": {
"annotations": {},
"enabled": false,
"labels": {
"grafana_dashboard": "1"
},
"namespace": null
},
"rules": {
"additionalGroups": [],
"additionalRuleLabels": {},
"alerting": true,
"annotations": {},
"disabled": {},
"enabled": false,
"labels": {},
"namespace": null
},
"selfMonitoring": {
"enabled": false,
"grafanaAgent": {
"annotations": {},
"enableConfigReadAPI": false,
"installOperator": false,
"labels": {},
"priorityClassName": null,
"resources": {},
"tolerations": []
},
"logsInstance": {
"annotations": {},
"clients": null,
"labels": {}
},
"podLogs": {
"additionalPipelineStages": [],
"annotations": {},
"apiVersion": "monitoring.grafana.com/v1alpha1",
"labels": {},
"relabelings": []
},
"tenant": {
"name": "self-monitoring",
"password": null,
"secretNamespace": "{{ .Release.Namespace }}"
}
},
"serviceMonitor": {
"annotations": {},
"enabled": false,
"interval": "15s",
"labels": {},
"metricRelabelings": [],
"metricsInstance": {
"annotations": {},
"enabled": true,
"labels": {},
"remoteWrite": null
},
"namespaceSelector": {},
"relabelings": [],
"scheme": "http",
"scrapeTimeout": null,
"tlsConfig": null
}
}
|
已废弃 Monitoring 部分决定启用哪些监控功能,此部分正在被 https://github.com/grafana/meta-monitoring-chart 替代 | object | monitoring.dashboards.annotations | {}
|
dashboards ConfigMap 的附加注解 | bool | monitoring.dashboards.enabled | false
|
如果启用,创建包含 Loki 监控 dashboard 的 configmap | object | monitoring.dashboards.labels | {
"grafana_dashboard": "1"
}
|
dashboards ConfigMap 的标签 | string | monitoring.dashboards.namespace | null
|
创建 dashboards ConfigMap 的备用命名空间 | object | monitoring.rules | {
"additionalGroups": [],
"additionalRuleLabels": {},
"alerting": true,
"annotations": {},
"disabled": {},
"enabled": false,
"labels": {},
"namespace": null
}
|
已废弃 Loki 监控的记录规则,某些 dashboard 需要 | list | monitoring.rules.additionalGroups | []
|
要添加到规则文件的附加组 | object | monitoring.rules.additionalRuleLabels | {}
|
PrometheusRule 警报的附加标签 | bool | monitoring.rules.alerting | true
|
包含警报规则 | object | monitoring.rules.annotations | {}
|
rules PrometheusRule 资源的附加注解 | object | monitoring.rules.disabled | {}
|
如果禁用所有警报并将 .monitoring.rules.alerting 保持设置为 true,chart 将无法渲染。 | bool | monitoring.rules.enabled | false
|
如果启用,创建带有 Loki 记录规则的 PrometheusRule 资源 | object | monitoring.rules.labels | {}
|
rules PrometheusRule 资源的附加标签 | string | monitoring.rules.namespace | null
|
创建 PrometheusRule 资源的备用命名空间 | object | monitoring.selfMonitoring | {
"enabled": false,
"grafanaAgent": {
"annotations": {},
"enableConfigReadAPI": false,
"installOperator": false,
"labels": {},
"priorityClassName": null,
"resources": {},
"tolerations": []
},
"logsInstance": {
"annotations": {},
"clients": null,
"labels": {}
},
"podLogs": {
"additionalPipelineStages": [],
"annotations": {},
"apiVersion": "monitoring.grafana.com/v1alpha1",
"labels": {},
"relabelings": []
},
"tenant": {
"name": "self-monitoring",
"password": null,
"secretNamespace": "{{ .Release.Namespace }}"
}
}
|
已废弃 自我监控决定 Loki 是否应抓取自己的日志。此功能目前依赖于 Grafana Agent Operator 的安装,该 Operator 默认使用 grafana-agent-operator sub-chart 安装。它将为 GrafanaAgent、LogsInstance 和 PodLogs 创建自定义资源,以配置抓取配置,抓取带有包含的 dashboards 预期标签的自身日志。 | object | monitoring.selfMonitoring.grafanaAgent | {
"annotations": {},
"enableConfigReadAPI": false,
"installOperator": false,
"labels": {},
"priorityClassName": null,
"resources": {},
"tolerations": []
}
|
已废弃 Grafana Agent 配置 | object | monitoring.selfMonitoring.grafanaAgent.annotations | {}
|
Grafana Agent 注解 | bool | monitoring.selfMonitoring.grafanaAgent.enableConfigReadAPI | false
|
在 agent 的 8080 端口启用 config read api | bool | monitoring.selfMonitoring.grafanaAgent.installOperator | false
|
已废弃 控制是否安装 Grafana Agent Operator 及其 CRD。请注意,如果在升级期间启用此标志,helm 将不会安装 CRD。在这种情况下,请从 https://github.com/grafana/agent/tree/main/production/operator/crds 手动安装 CRD。 | object | monitoring.selfMonitoring.grafanaAgent.labels | {}
|
附加 Grafana Agent 标签 | string | monitoring.selfMonitoring.grafanaAgent.priorityClassName | null
|
GrafanaAgent pod 的 PriorityClass 名称 | object | monitoring.selfMonitoring.grafanaAgent.resources | {}
|
grafanaAgent pod 的资源请求和限制 | list | monitoring.selfMonitoring.grafanaAgent.tolerations | []
|
GrafanaAgent pod 的容忍度 | object | monitoring.selfMonitoring.logsInstance.annotations | {}
|
LogsInstance 注解 | string | monitoring.selfMonitoring.logsInstance.clients | null
|
远程写入的附加客户端 | object | monitoring.selfMonitoring.logsInstance.labels | {}
|
附加 LogsInstance 标签 | list | monitoring.selfMonitoring.podLogs.additionalPipelineStages | []
|
抓取日志后用于处理日志的附加 pipeline stage https://grafana.org.cn/docs/agent/latest/operator/api/#pipelinestagespec-a-namemonitoringgrafanacomv1alpha1pipelinestagespeca | object | monitoring.selfMonitoring.podLogs.annotations | {}
|
PodLogs 注解 | string | monitoring.selfMonitoring.podLogs.apiVersion | "monitoring.grafana.com/v1alpha1"
|
PodLogs 版本 | object | monitoring.selfMonitoring.podLogs.labels | {}
|
附加 PodLogs 标签 | list | monitoring.selfMonitoring.podLogs.relabelings | []
|
抓取前应用于样本的 PodLogs relabel 配置 https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#relabelconfig | object | monitoring.selfMonitoring.tenant | {
"name": "self-monitoring",
"password": null,
"secretNamespace": "{{ .Release.Namespace }}"
}
|
用于自我监控的租户 | string | monitoring.selfMonitoring.tenant.name | "self-monitoring"
|
租户名称 | string | monitoring.selfMonitoring.tenant.password | null
|
用于 Basic auth 的 gateway 密码 | string | monitoring.selfMonitoring.tenant.secretNamespace | "{{ .Release.Namespace }}"
|
创建附加租户令牌 secret 的命名空间。如果您的 Grafana 实例在单独的命名空间中,此项很有用。令牌仍将在 canary 命名空间中创建。 | object | monitoring.serviceMonitor.annotations | {}
|
ServiceMonitor 注解 | bool | monitoring.serviceMonitor.enabled | false
|
如果启用,将为 Prometheus Operator 创建 ServiceMonitor 资源 | string | monitoring.serviceMonitor.interval | "15s"
|
ServiceMonitor 抓取间隔。默认是 15s,因为包含的记录规则使用 1 分钟的 rate,并且抓取间隔需要至少是 rate 间隔的 1/4。 | object | monitoring.serviceMonitor.labels | {}
|
附加 ServiceMonitor 标签 | list | monitoring.serviceMonitor.metricRelabelings | []
|
摄取前应用于样本的 ServiceMonitor metric relabel 配置 https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#endpoint | object | monitoring.serviceMonitor.metricsInstance | {
"annotations": {},
"enabled": true,
"labels": {},
"remoteWrite": null
}
|
如果已定义,将为 Grafana Agent Operator 创建一个 MetricsInstance。 | object | monitoring.serviceMonitor.metricsInstance.annotations | {}
|
MetricsInstance 注解 | bool | monitoring.serviceMonitor.metricsInstance.enabled | true
|
如果启用,将为 Grafana Agent Operator 创建 MetricsInstance 资源 | object | monitoring.serviceMonitor.metricsInstance.labels | {}
|
附加 MetricsInstance 标签 | string | monitoring.serviceMonitor.metricsInstance.remoteWrite | null
|
如果已定义,将创建一个 MetricsInstance 以远程写入指标。 | object | monitoring.serviceMonitor.namespaceSelector | {}
|
ServiceMonitor 资源的命名空间选择器 | list | monitoring.serviceMonitor.relabelings | []
|
抓取前应用于样本的 ServiceMonitor relabel 配置 https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#relabelconfig | string | monitoring.serviceMonitor.scheme | "http"
|
ServiceMonitor 默认使用 http,但您也可以选择 https | string | monitoring.serviceMonitor.scrapeTimeout | null
|
ServiceMonitor 抓取超时时间,格式为 Go duration(例如 15s) | string | monitoring.serviceMonitor.tlsConfig | null
|
ServiceMonitor 将使用这些 tlsConfig 设置来执行健康检查请求 | string | nameOverride | null
|
覆盖 chart 的名称 | object | networkPolicy.alertmanager.namespaceSelector | {}
|
指定 alertmanager 正在运行的命名空间 | object | networkPolicy.alertmanager.podSelector | {}
|
指定 alertmanager Pods。由于这是跨命名空间通信,您还需要 namespaceSelector。 | int | networkPolicy.alertmanager.port | 9093
|
指定用于警报的 alertmanager 端口 | object | networkPolicy.discovery.namespaceSelector | {}
|
指定 discovery Pods 正在运行的命名空间 | object | networkPolicy.discovery.podSelector | {}
|
指定用于 discovery 的 Pods 标签。由于这是跨命名空间通信,您还需要 namespaceSelector。 | int | networkPolicy.discovery.port | null
|
指定用于 discovery 的端口 | bool | networkPolicy.egressKubeApiserver.enabled | false
|
为 backend 启用到 kube-apiserver 的附加 cilium egress 规则。 | bool | networkPolicy.egressWorld.enabled | false
|
为 write、read 和 backend 启用到外部世界的附加 cilium egress 规则。 | bool | networkPolicy.enabled | false
|
指定是否应创建 Network Policies | list | networkPolicy.externalStorage.cidrs | []
|
指定要限制访问的特定网络 CIDR | list | networkPolicy.externalStorage.ports | []
|
指定用于外部存储的端口,例如 AWS S3 | string | networkPolicy.flavor | "kubernetes"
|
指定创建的策略是标准 Network Policies (flavor: kubernetes) 还是 Cilium Network Policies (flavor: cilium) | object | networkPolicy.ingress.namespaceSelector | {}
|
指定允许访问 http 端口的命名空间 | object | networkPolicy.ingress.podSelector | {}
|
指定允许访问 http 端口的 Pods。由于这是跨命名空间通信,您还需要 namespaceSelector。 | list | networkPolicy.metrics.cidrs | []
|
指定允许访问 metrics 端口的特定网络 CIDR。如果您使用 namespaceSelector,还需要在此处指定您的 kubelet 网络。metrics 端口也用于探针。 | object | networkPolicy.metrics.namespaceSelector | {}
|
指定允许访问 metrics 端口的命名空间 | object | networkPolicy.metrics.podSelector | {}
|
指定允许访问 metrics 端口的 Pods。由于这是跨命名空间通信,您还需要 namespaceSelector。 | object | overridesExporter | {
"affinity": {
"podAntiAffinity": {
"requiredDuringSchedulingIgnoredDuringExecution": [
{
"labelSelector": {
"matchLabels": {
"app.kubernetes.io/component": "overrides-exporter"
}
},
"topologyKey": "kubernetes.io/hostname"
}
]
}
},
"appProtocol": {
"grpc": ""
},
"command": null,
"enabled": false,
"extraArgs": [],
"extraContainers": [],
"extraEnv": [],
"extraEnvFrom": [],
"extraVolumeMounts": [],
"extraVolumes": [],
"hostAliases": [],
"image": {
"registry": null,
"repository": null,
"tag": null
},
"initContainers": [],
"maxUnavailable": null,
"nodeSelector": {},
"podAnnotations": {},
"podLabels": {},
"priorityClassName": null,
"replicas": 0,
"resources": {},
"serviceAnnotations": {},
"serviceLabels": {},
"terminationGracePeriodSeconds": 300,
"tolerations": [],
"topologySpreadConstraints": []
}
|
overrides-exporter 的配置 | object | overridesExporter.affinity | Hard node anti-affinity |
overrides-exporter pod 的亲和性。 | object | 设置可选的 grpc 服务协议。例如:“grpc”、“http2”或“https” | {
"grpc": ""
}
|
overridesExporter.appProtocol | string | 要执行的命令,而非 Docker 镜像中定义的命令 | null
|
overridesExporter.command | bool | overridesExporter.enabled | false
|
overrides-exporter 组件是可选的,如果需要可以禁用。 | list | overridesExporter.extraArgs | []
|
overrides-exporter 的附加 CLI 参数 | list | overridesExporter.extraContainers | []
|
要添加到 overrides-exporter pod 的容器 | list | overridesExporter.extraEnv | []
|
要添加到 overrides-exporter pod 的环境变量 | list | overridesExporter.extraEnvFrom | []
|
要添加到 overrides-exporter pod 的来自 secrets 或 configmaps 的环境变量 | list | overridesExporter.extraVolumeMounts | []
|
要添加到 overrides-exporter pod 的卷挂载 | list | overridesExporter.extraVolumes | []
|
要添加到 overrides-exporter pod 的卷 | list | 要添加的 hostAliases | []
|
overridesExporter.hostAliases | string | overridesExporter.image.registry | null
|
overrides-exporter 镜像的 Docker 注册表。覆盖 loki.image.registry | string | overridesExporter.image.repository | null
|
overrides-exporter 镜像的 Docker 镜像仓库。覆盖 loki.image.repository | string | overridesExporter.image.tag | null
|
overrides-exporter 镜像的 Docker 镜像标签。覆盖 loki.image.tag | list | overridesExporter.initContainers | []
|
要添加到 overrides-exporter pod 的 Init 容器 | string | Pod Disruption Budget 的 maxUnavailable | null
|
overridesExporter.maxUnavailable | object | overridesExporter.nodeSelector | {}
|
overrides-exporter pod 的节点选择器 | object | overridesExporter.podAnnotations | {}
|
overrides-exporter pod 的注解 | object | overridesExporter.podLabels | {}
|
overrides-exporter pod 的标签 | string | overridesExporter.priorityClassName | null
|
overrides-exporter pod 的 PriorityClass 名称 | int | overridesExporter.replicas | 0
|
overrides-exporter 的副本数量 | object | overridesExporter.resources | {}
|
overrides-exporter 的资源请求和限制 | object | overridesExporter.serviceAnnotations | {}
|
overrides-exporter service 的注解 | object | overridesExporter.serviceLabels | {}
|
overrides-exporter service 的标签 | int | overridesExporter.terminationGracePeriodSeconds | 300
|
允许 overrides-exporter 在被终止前优雅关闭的宽限期 | list | overridesExporter.tolerations | []
|
overrides-exporter pod 的容忍度 | list | overridesExporter.topologySpreadConstraints | []
|
overrides-exporter pod 的拓扑分布约束 | object | patternIngester | {
"affinity": {
"podAntiAffinity": {
"requiredDuringSchedulingIgnoredDuringExecution": [
{
"labelSelector": {
"matchLabels": {
"app.kubernetes.io/component": "pattern-ingester"
}
},
"topologyKey": "kubernetes.io/hostname"
}
]
}
},
"appProtocol": {
"grpc": ""
},
"command": null,
"extraArgs": [],
"extraContainers": [],
"extraEnv": [],
"extraEnvFrom": [],
"extraVolumeMounts": [],
"extraVolumes": [],
"hostAliases": [],
"image": {
"registry": null,
"repository": null,
"tag": null
},
"initContainers": [],
"livenessProbe": {},
"nodeSelector": {},
"persistence": {
"annotations": {},
"claims": [
{
"name": "data",
"size": "10Gi",
"storageClass": null
}
],
"enableStatefulSetAutoDeletePVC": false,
"enabled": false,
"size": "10Gi",
"storageClass": null,
"whenDeleted": "Retain",
"whenScaled": "Retain"
},
"podAnnotations": {},
"podLabels": {},
"priorityClassName": null,
"readinessProbe": {},
"replicas": 0,
"resources": {},
"serviceAccount": {
"annotations": {},
"automountServiceAccountToken": true,
"create": false,
"imagePullSecrets": [],
"name": null
},
"serviceAnnotations": {},
"serviceLabels": {},
"terminationGracePeriodSeconds": 30,
"tolerations": [],
"topologySpreadConstraints": []
}
|
pattern ingester 的配置 | object | patternIngester.affinity | Hard node anti-affinity |
pattern ingester pod 的亲和性。 | object | 设置可选的 grpc 服务协议。例如:“grpc”、“http2”或“https” | {
"grpc": ""
}
|
patternIngester.appProtocol | string | 要执行的命令,而非 Docker 镜像中定义的命令 | null
|
patternIngester.command | list | patternIngester.extraArgs | []
|
pattern ingester 的附加 CLI 参数 | list | patternIngester.extraContainers | []
|
要添加到 pattern ingester pod 的容器 | list | patternIngester.extraEnv | []
|
要添加到 pattern ingester pod 的环境变量 | list | patternIngester.extraEnvFrom | []
|
要添加到 pattern ingester pod 的来自 secrets 或 configmaps 的环境变量 | list | patternIngester.extraVolumeMounts | []
|
要添加到 pattern ingester pod 的卷挂载 | list | patternIngester.extraVolumes | []
|
要添加到 pattern ingester pod 的卷 | list | 要添加的 hostAliases | []
|
patternIngester.hostAliases | string | patternIngester.image.registry | null
|
pattern ingester 镜像的 Docker 注册表。覆盖 loki.image.registry | string | patternIngester.image.repository | null
|
pattern ingester 镜像的 Docker 镜像仓库。覆盖 loki.image.repository | string | patternIngester.image.tag | null
|
pattern ingester 镜像的 Docker 镜像标签。覆盖 loki.image.tag | list | patternIngester.initContainers | []
|
要添加到 pattern ingester pod 的 Init 容器 | object | ingester pod 的活跃度探针设置。如果为空,则使用 loki.livenessProbe | {}
|
patternIngester.livenessProbe | object | patternIngester.nodeSelector | {}
|
pattern ingester pod 的节点选择器 | object | patternIngester.persistence.annotations | {}
|
pattern ingester PVC 的注解 | list | patternIngester.persistence.claims |
|
pattern ingester PVC 列表 | bool | 启用 StatefulSetAutoDeletePVC 功能 | false
|
patternIngester.persistence.enableStatefulSetAutoDeletePVC | bool | patternIngester.persistence.enabled | false
|
为 pattern ingester 启用创建 PVC | string | 持久卷大小 | "10Gi"
|
patternIngester.persistence.size | string | 要使用的存储类。如果已定义,则使用 storageClassName | null
|
patternIngester.persistence.storageClass | object | patternIngester.podAnnotations | {}
|
pattern ingester pod 的注解 | object | patternIngester.podLabels | {}
|
pattern ingester pod 的标签 | string | patternIngester.priorityClassName | null
|
pattern ingester pod 的 PriorityClass 名称 | object | ingester pod 的就绪探针设置。如果为空,则使用 loki.readinessProbe | {}
|
patternIngester.readinessProbe | int | patternIngester.replicas | 0
|
pattern ingester 的副本数量 | object | patternIngester.resources | {}
|
pattern ingester 的资源请求和限制 | object | patternIngester.serviceAccount.annotations | {}
|
pattern ingester 服务账号的注解 | bool | 将此开关设置为 false 以选择退出服务帐户的自动挂载 API 凭据 | true
|
patternIngester.serviceAccount.automountServiceAccountToken | list | patternIngester.serviceAccount.imagePullSecrets | []
|
pattern ingester 服务账号的镜像拉取 secret | string | patternIngester.serviceAccount.name | null
|
要用于 pattern ingester 的 ServiceAccount 名称。如果未设置且 create 为 true,则通过在通用 ServiceAccount 名称后附加 "-pattern-ingester" 生成名称。 | object | patternIngester.serviceAnnotations | {}
|
pattern ingester service 的注解 | object | patternIngester.serviceLabels | {}
|
pattern ingester service 的标签 | int | patternIngester.terminationGracePeriodSeconds | 30
|
允许 pattern ingester 在被终止前优雅关闭的宽限期 | list | patternIngester.tolerations | []
|
pattern ingester pod 的容忍度 | list | patternIngester.topologySpreadConstraints | []
|
pattern ingester pod 的拓扑分布约束 | object | querier | {
"affinity": {
"podAntiAffinity": {
"requiredDuringSchedulingIgnoredDuringExecution": [
{
"labelSelector": {
"matchLabels": {
"app.kubernetes.io/component": "querier"
}
},
"topologyKey": "kubernetes.io/hostname"
}
]
}
},
"appProtocol": {
"grpc": ""
},
"autoscaling": {
"behavior": {
"enabled": false,
"scaleDown": {},
"scaleUp": {}
},
"customMetrics": [],
"enabled": false,
"maxReplicas": 3,
"minReplicas": 1,
"targetCPUUtilizationPercentage": 60,
"targetMemoryUtilizationPercentage": null
},
"command": null,
"dnsConfig": {},
"extraArgs": [],
"extraContainers": [],
"extraEnv": [],
"extraEnvFrom": [],
"extraVolumeMounts": [],
"extraVolumes": [],
"hostAliases": [],
"image": {
"registry": null,
"repository": null,
"tag": null
},
"initContainers": [],
"maxSurge": 0,
"maxUnavailable": null,
"nodeSelector": {},
"persistence": {
"annotations": {},
"enabled": false,
"size": "10Gi",
"storageClass": null
},
"podAnnotations": {},
"podLabels": {},
"priorityClassName": null,
"replicas": 0,
"resources": {},
"serviceAnnotations": {},
"serviceLabels": {},
"terminationGracePeriodSeconds": 30,
"tolerations": [],
"topologySpreadConstraints": [
{
"labelSelector": {
"matchLabels": {
"app.kubernetes.io/component": "querier"
}
},
"maxSkew": 1,
"topologyKey": "kubernetes.io/hostname",
"whenUnsatisfiable": "ScheduleAnyway"
}
]
}
|
querier 的配置 | object | querier.affinity | Hard node anti-affinity |
querier pod 的亲和性。 | object | querier.appProtocol | {
"grpc": ""
}
|
将 appProtocol 字段添加到 querier service。这使得 querier 可以与 istio 协议选择一起工作。 | string | 设置可选的 grpc 服务协议。例如:“grpc”、“http2”或“https” | ""
|
querier.appProtocol.grpc | bool | 启用自动伸缩行为 | false
|
querier.autoscaling.behavior.enabled | object | 定义缩容策略,必须符合 HPAScalingRules | {}
|
querier.autoscaling.behavior.scaleDown | object | 定义扩容策略,必须符合 HPAScalingRules | {}
|
querier.autoscaling.behavior.scaleUp | list | 允许使用 HPA/v2 schema 定义自定义指标(例如,Pod、Object 或 External metrics) | []
|
querier.autoscaling.customMetrics | bool | querier.autoscaling.enabled | false
|
为 querier 启用自动扩缩容,仅当 indexGateway.enabled: true 时使用 | int | querier.autoscaling.maxReplicas | 3
|
querier 的最大自动扩缩容副本数 | int | querier.autoscaling.minReplicas | 1
|
querier 的最小自动扩缩容副本数 | int | querier.autoscaling.targetCPUUtilizationPercentage | 60
|
querier 的目标 CPU 利用率百分比 | string | querier.autoscaling.targetMemoryUtilizationPercentage | null
|
querier 的目标内存利用率百分比 | string | 要执行的命令,而非 Docker 镜像中定义的命令 | null
|
querier.command | object | querier.dnsConfig | {}
|
querier pod 的 DNS 配置 | list | querier.extraArgs | []
|
querier 的附加 CLI 参数 | list | querier.extraContainers | []
|
要添加到 querier pod 的容器 | list | querier.extraEnv | []
|
要添加到 querier pod 的环境变量 | list | querier.extraEnvFrom | []
|
要添加到 querier pod 的来自 secrets 或 configmaps 的环境变量 | list | querier.extraVolumeMounts | []
|
要添加到 querier pod 的卷挂载 | list | querier.extraVolumes | []
|
要添加到 querier pod 的卷 | list | 要添加的 hostAliases | []
|
querier.hostAliases | string | querier.image.registry | null
|
querier 镜像的 Docker 注册表。覆盖 loki.image.registry | string | querier.image.repository | null
|
querier 镜像的 Docker 镜像仓库。覆盖 loki.image.repository | string | querier.image.tag | null
|
querier 镜像的 Docker 镜像标签。覆盖 loki.image.tag | list | querier.initContainers | []
|
要添加到 querier pod 的 Init 容器 | int | querier.maxSurge | 0
|
querier pod 的最大 surge | string | Pod Disruption Budget 的 maxUnavailable | null
|
querier.maxUnavailable | object | querier.nodeSelector | {}
|
querier pod 的节点选择器 | object | querier.persistence.annotations | {}
|
querier PVC 的注解 | bool | querier.persistence.enabled | false
|
为 querier 缓存启用创建 PVC | string | 持久卷大小 | "10Gi"
|
querier.persistence.size | string | 要使用的存储类。如果已定义,则使用 storageClassName | null
|
querier.persistence.storageClass | object | querier.podAnnotations | {}
|
querier pod 的注解 | object | querier.podLabels | {}
|
querier pod 的标签 | string | querier.priorityClassName | null
|
querier pod 的 PriorityClass 名称 | int | querier.replicas | 0
|
querier 的副本数量 | object | querier.resources | {}
|
querier 的资源请求和限制 | object | querier.serviceAnnotations | {}
|
querier service 的注解 | object | querier.serviceLabels | {}
|
querier service 的标签 | int | querier.terminationGracePeriodSeconds | 30
|
允许 querier 在被终止前优雅关闭的宽限期 | list | querier.tolerations | []
|
querier pod 的容忍度 | list | querier.topologySpreadConstraints | Defaults to allow skew no more then 1 node |
querier pod 的 topologySpread。 | object | queryFrontend | {
"affinity": {
"podAntiAffinity": {
"requiredDuringSchedulingIgnoredDuringExecution": [
{
"labelSelector": {
"matchLabels": {
"app.kubernetes.io/component": "query-frontend"
}
},
"topologyKey": "kubernetes.io/hostname"
}
]
}
},
"appProtocol": {
"grpc": ""
},
"autoscaling": {
"behavior": {
"enabled": false,
"scaleDown": {},
"scaleUp": {}
},
"customMetrics": [],
"enabled": false,
"maxReplicas": 3,
"minReplicas": 1,
"targetCPUUtilizationPercentage": 60,
"targetMemoryUtilizationPercentage": null
},
"command": null,
"extraArgs": [],
"extraContainers": [],
"extraEnv": [],
"extraEnvFrom": [],
"extraVolumeMounts": [],
"extraVolumes": [],
"hostAliases": [],
"image": {
"registry": null,
"repository": null,
"tag": null
},
"maxUnavailable": null,
"nodeSelector": {},
"podAnnotations": {},
"podLabels": {},
"priorityClassName": null,
"replicas": 0,
"resources": {},
"serviceAnnotations": {},
"serviceLabels": {},
"terminationGracePeriodSeconds": 30,
"tolerations": [],
"topologySpreadConstraints": []
}
|
query-frontend 的配置 | object | queryFrontend.affinity | Hard node anti-affinity |
query-frontend pod 的亲和性。 | object | queryFrontend.appProtocol | {
"grpc": ""
}
|
将 appProtocol 字段添加到 queryFrontend service。这使得 queryFrontend 可以与 istio 协议选择一起工作。 | string | 设置可选的 grpc 服务协议。例如:“grpc”、“http2”或“https” | ""
|
queryFrontend.appProtocol.grpc | bool | 启用自动伸缩行为 | false
|
queryFrontend.autoscaling.behavior.enabled | object | 定义缩容策略,必须符合 HPAScalingRules | {}
|
queryFrontend.autoscaling.behavior.scaleDown | object | 定义扩容策略,必须符合 HPAScalingRules | {}
|
queryFrontend.autoscaling.behavior.scaleUp | list | 允许使用 HPA/v2 schema 定义自定义指标(例如,Pod、Object 或 External metrics) | []
|
queryFrontend.autoscaling.customMetrics | bool | queryFrontend.autoscaling.enabled | false
|
为 query-frontend 启用自动扩缩容 | int | queryFrontend.autoscaling.maxReplicas | 3
|
query-frontend 的最大自动扩缩容副本数 | int | queryFrontend.autoscaling.minReplicas | 1
|
query-frontend 的最小自动扩缩容副本数 | int | queryFrontend.autoscaling.targetCPUUtilizationPercentage | 60
|
query-frontend 的目标 CPU 利用率百分比 | string | queryFrontend.autoscaling.targetMemoryUtilizationPercentage | null
|
query-frontend 的目标内存利用率百分比 | string | 要执行的命令,而非 Docker 镜像中定义的命令 | null
|
queryFrontend.command | list | queryFrontend.extraArgs | []
|
query-frontend 的附加 CLI 参数 | list | queryFrontend.extraContainers | []
|
要添加到 query-frontend pod 的容器 | list | queryFrontend.extraEnv | []
|
要添加到 query-frontend pod 的环境变量 | list | queryFrontend.extraEnvFrom | []
|
要添加到 query-frontend pod 的来自 secrets 或 configmaps 的环境变量 | list | queryFrontend.extraVolumeMounts | []
|
要添加到 query-frontend pod 的卷挂载 | list | queryFrontend.extraVolumes | []
|
要添加到 query-frontend pod 的卷 | list | 要添加的 hostAliases | []
|
queryFrontend.hostAliases | string | queryFrontend.image.registry | null
|
query-frontend 镜像的 Docker 注册表。覆盖 loki.image.registry | string | queryFrontend.image.repository | null
|
query-frontend 镜像的 Docker 镜像仓库。覆盖 loki.image.repository | string | queryFrontend.image.tag | null
|
query-frontend 镜像的 Docker 镜像标签。覆盖 loki.image.tag | string | Pod Disruption Budget 的 maxUnavailable | null
|
queryFrontend.maxUnavailable | object | queryFrontend.nodeSelector | {}
|
query-frontend pod 的节点选择器 | object | queryFrontend.podAnnotations | {}
|
query-frontend pod 的注解 | object | queryFrontend.podLabels | {}
|
query-frontend pod 的标签 | string | queryFrontend.priorityClassName | null
|
query-frontend pod 的 PriorityClass 名称 | int | queryFrontend.replicas | 0
|
query-frontend 的副本数量 | object | queryFrontend.resources | {}
|
query-frontend 的资源请求和限制 | object | queryFrontend.serviceAnnotations | {}
|
query-frontend service 的注解 | object | queryFrontend.serviceLabels | {}
|
query-frontend service 的标签 | int | queryFrontend.terminationGracePeriodSeconds | 30
|
允许 query-frontend 在被终止前优雅关闭的宽限期 | list | queryFrontend.tolerations | []
|
query-frontend pod 的容忍度 | list | queryFrontend.topologySpreadConstraints | []
|
query-frontend pod 的拓扑分布约束 | object | queryScheduler | {
"affinity": {
"podAntiAffinity": {
"requiredDuringSchedulingIgnoredDuringExecution": [
{
"labelSelector": {
"matchLabels": {
"app.kubernetes.io/component": "query-scheduler"
}
},
"topologyKey": "kubernetes.io/hostname"
}
]
}
},
"appProtocol": {
"grpc": ""
},
"extraArgs": [],
"extraContainers": [],
"extraEnv": [],
"extraEnvFrom": [],
"extraVolumeMounts": [],
"extraVolumes": [],
"hostAliases": [],
"image": {
"registry": null,
"repository": null,
"tag": null
},
"maxUnavailable": 1,
"nodeSelector": {},
"podAnnotations": {},
"podLabels": {},
"priorityClassName": null,
"replicas": 0,
"resources": {},
"serviceAnnotations": {},
"serviceLabels": {},
"terminationGracePeriodSeconds": 30,
"tolerations": [],
"topologySpreadConstraints": []
}
|
query-scheduler 的配置 | object | queryScheduler.affinity | Hard node anti-affinity |
query-scheduler pod 的亲和性。 | object | 设置可选的 grpc 服务协议。例如:“grpc”、“http2”或“https” | {
"grpc": ""
}
|
queryScheduler.appProtocol | list | queryScheduler.extraArgs | []
|
query-scheduler 的附加 CLI 参数 | list | queryScheduler.extraContainers | []
|
要添加到 query-scheduler pod 的容器 | list | queryScheduler.extraEnv | []
|
要添加到 query-scheduler pod 的环境变量 | list | queryScheduler.extraEnvFrom | []
|
要添加到 query-scheduler pod 的来自 secrets 或 configmaps 的环境变量 | list | queryScheduler.extraVolumeMounts | []
|
要添加到 query-scheduler pod 的卷挂载 | list | queryScheduler.extraVolumes | []
|
要添加到 query-scheduler pod 的卷 | list | 要添加的 hostAliases | []
|
queryScheduler.hostAliases | string | queryScheduler.image.registry | null
|
query-scheduler 镜像的 Docker 注册表。覆盖 loki.image.registry | string | queryScheduler.image.repository | null
|
query-scheduler 镜像的 Docker 镜像仓库。覆盖 loki.image.repository | string | queryScheduler.image.tag | null
|
query-scheduler 镜像的 Docker 镜像标签。覆盖 loki.image.tag | int | Pod Disruption Budget 的 maxUnavailable | 1
|
queryScheduler.maxUnavailable | object | queryScheduler.nodeSelector | {}
|
query-scheduler pod 的节点选择器 | object | queryScheduler.podAnnotations | {}
|
query-scheduler pod 的注解 | object | queryScheduler.podLabels | {}
|
query-scheduler pod 的标签 | string | queryScheduler.priorityClassName | null
|
query-scheduler pod 的 PriorityClass 名称 | int | queryScheduler.replicas | 0
|
query-scheduler 的副本数量。它应该小于 -querier.max-concurrent 以避免在 queriers 中产生反压;还建议此值能被后者整除 | object | queryScheduler.resources | {}
|
query-scheduler 的资源请求和限制 | object | queryScheduler.serviceAnnotations | {}
|
query-scheduler service 的注解 | object | queryScheduler.serviceLabels | {}
|
query-scheduler service 的标签 | int | queryScheduler.terminationGracePeriodSeconds | 30
|
允许 query-scheduler 在被终止前优雅关闭的宽限期 | list | queryScheduler.tolerations | []
|
query-scheduler pod 的容忍度 | list | queryScheduler.topologySpreadConstraints | []
|
query-scheduler pod 的拓扑分布约束 | bool | rbac.namespaced | false
|
RBAC 是仅安装在命名空间中还是集群范围。如果想全局监控 ConfigMap,此项很有用。 | object | rbac.pspAnnotations | {}
|
指定 PSP 注解 参考:https://kubernetes.ac.cn/docs/reference/access-authn-authz/psp-to-pod-security-standards/#podsecuritypolicy-annotations | bool | rbac.pspEnabled | false
|
如果 pspEnabled 为 true,则为使用 psp 的 K8s 创建 PodSecurityPolicy。 | bool | rbac.sccEnabled | false
|
对于 OpenShift,将 pspEnabled 设置为 'false' 并将 sccEnabled 设置为 'true' 以使用 SecurityContextConstraints。 | object | read | {
"affinity": {
"podAntiAffinity": {
"requiredDuringSchedulingIgnoredDuringExecution": [
{
"labelSelector": {
"matchLabels": {
"app.kubernetes.io/component": "read"
}
},
"topologyKey": "kubernetes.io/hostname"
}
]
}
},
"annotations": {},
"autoscaling": {
"behavior": {},
"enabled": false,
"maxReplicas": 6,
"minReplicas": 2,
"targetCPUUtilizationPercentage": 60,
"targetMemoryUtilizationPercentage": null
},
"dnsConfig": {},
"extraArgs": [],
"extraContainers": [],
"extraEnv": [],
"extraEnvFrom": [],
"extraVolumeMounts": [],
"extraVolumes": [],
"image": {
"registry": null,
"repository": null,
"tag": null
},
"legacyReadTarget": false,
"lifecycle": {},
"nodeSelector": {},
"persistence": {
"annotations": {},
"enableStatefulSetAutoDeletePVC": true,
"selector": null,
"size": "10Gi",
"storageClass": null
},
"podAnnotations": {},
"podLabels": {},
"podManagementPolicy": "Parallel",
"priorityClassName": null,
"replicas": 3,
"resources": {},
"selectorLabels": {},
"service": {
"annotations": {},
"labels": {}
},
"targetModule": "read",
"terminationGracePeriodSeconds": 30,
"tolerations": [],
"topologySpreadConstraints": []
}
|
read pod(s) 的配置 | object | read.affinity | Hard node anti-affinity |
read pod 的亲和性。 | object | read.annotations | {}
|
read deployment 的注解 | object | 伸缩时的行为策略。 | {}
|
read.autoscaling.behavior | bool | read.autoscaling.enabled | false
|
为 read 启用自动扩缩容,仅当 queryIndex.enabled: true 时使用 | int | read.autoscaling.maxReplicas | 6
|
read 的最大自动扩缩容副本数 | int | read.autoscaling.minReplicas | 2
|
read 的最小自动扩缩容副本数 | int | read.autoscaling.targetCPUUtilizationPercentage | 60
|
read 的目标 CPU 利用率百分比 | string | read.autoscaling.targetMemoryUtilizationPercentage | null
|
read 的目标内存利用率百分比 | object | read.dnsConfig | {}
|
read pod 的 DNS 配置 | list | read.extraArgs | []
|
read 的附加 CLI 参数 | list | read.extraContainers | []
|
要添加到 read pod 的容器 | list | read.extraEnv | []
|
要添加到 read pod 的环境变量 | list | read.extraEnvFrom | []
|
要添加到 read pod 的来自 secrets 或 configmaps 的环境变量 | list | read.extraVolumeMounts | []
|
要添加到 read pod 的卷挂载 | list | read.extraVolumes | []
|
要添加到 read pod 的卷 | string | read.image.registry | null
|
read 镜像的 Docker 注册表。覆盖 loki.image.registry | string | read.image.repository | null
|
read 镜像的 Docker 镜像仓库。覆盖 loki.image.repository | string | read.image.tag | null
|
read 镜像的 Docker 镜像标签。覆盖 loki.image.tag | bool | read.legacyReadTarget | false
|
是否使用 2 种目标类型简单可扩展模式(read, write)或 3 种目标类型(read, write, backend)。Legacy 指的是 2 种目标类型,因此 true 将运行两个目标,false 将运行 3 个目标。 | object | read.lifecycle | {}
|
read 容器的生命周期 | object | read.nodeSelector | {}
|
read pod 的节点选择器 | object | read.persistence | {
"annotations": {},
"enableStatefulSetAutoDeletePVC": true,
"selector": null,
"size": "10Gi",
"storageClass": null
}
|
仅当 legacyReadTarget 设置为 true 时使用 read.persistence | object | 卷声明的注解 | {}
|
read.persistence.annotations | bool | 启用 StatefulSetAutoDeletePVC 功能 | true
|
read.persistence.enableStatefulSetAutoDeletePVC | string | 持久卷的选择器 | null
|
read.persistence.selector | string | 持久卷大小 | "10Gi"
|
read.persistence.size | string | 要使用的存储类。如果已定义,则使用 storageClassName | null
|
read.persistence.storageClass | object | read.podAnnotations | {}
|
read pod 的注解 | object | read.podLabels | {}
|
每个 read pod 的附加标签 | string | 默认并行部署所有 Pod。 | "Parallel"
|
read.podManagementPolicy | string | read.priorityClassName | null
|
read pod 的 PriorityClass 名称 | int | read.replicas | 3
|
read 的副本数量 | object | read.resources | {}
|
read 的资源请求和限制 | object | read.selectorLabels | {}
|
每个 read pod 的附加选择器标签 | object | read.service.annotations | {}
|
read Service 的注解 | object | read.service.labels | {}
|
read Service 的附加标签 | string | read.targetModule | "read"
|
要为 read 加载的 Loki 模块的逗号分隔列表 | int | read.terminationGracePeriodSeconds | 30
|
允许 read 在被终止前优雅关闭的宽限期 | list | read.tolerations | []
|
read pod 的容忍度 | list | read.topologySpreadConstraints | []
|
read pod 的拓扑分布约束 | object | resultsCache.affinity | {}
|
results-cache pod 的亲和性 | int | resultsCache.allocatedMemory | 1024
|
分配给 results-cache 用于对象存储的内存量(单位:MB)。 | object | resultsCache.annotations | {}
|
results-cache pod 的注解 | int | 允许的最大连接数 | 16384
|
resultsCache.connectionLimit | string | resultsCache.defaultValidity | "12h"
|
指定缓存结果在 results-cache 中存储多久后过期 | bool | resultsCache.enabled | true
|
指定是否应启用基于 memcached 的 results-cache | object | resultsCache.extraArgs | {}
|
results-cache 的附加 CLI 参数 | list | resultsCache.extraContainers | []
|
要添加到 results-cache pod 的附加容器。 | string | resultsCache.extraExtendedOptions | ""
|
为 results-cache memcached 容器添加扩展选项。格式与 memcached 的 -o/--extend 标志相同。示例:extraExtendedOptions: 'tls,modern,track_sizes' | list | resultsCache.extraVolumeMounts | []
|
resultsCache.extraVolumes | list | 要添加到 results-cache Pod 的附加卷(适用于 memcached 和 exporter 容器)。示例:extraVolumes: - name: extra-volume secret: secretName: extra-volume-secret | []
|
resultsCache.initContainers | list | results-cache Pod 的额外 Init 容器 | []
|
resultsCache.maxItemMemory | int | memcached 的最大项 results-cache(以 MB 为单位)。 | 5
|
resultsCache.nodeSelector | object | results-cache Pod 的节点选择器 | {}
|
resultsCache.persistence | object | results-cache 的持久化设置 | {
"enabled": false,
"mountPath": "/data",
"storageClass": null,
"storageSize": "10G"
}
|
resultsCache.persistence.enabled | bool | 为 results-cache 启用创建 PVC | false
|
resultsCache.persistence.mountPath | string | 卷挂载路径 | "/data"
|
resultsCache.persistence.storageClass | string | 要使用的存储类。如果已定义,则使用 storageClassName | null
|
resultsCache.persistence.storageSize | string | 持久卷大小,必须以 G 或 Gi 为单位 | "10G"
|
resultsCache.podAnnotations | object | results-cache Pod 的注解 | {}
|
resultsCache.podDisruptionBudget | object | Pod 中断预算 | {
"maxUnavailable": 1
}
|
resultsCache.podLabels | object | results-cache Pod 的标签 | {}
|
resultsCache.podManagementPolicy | string | results-cache Pod 的管理策略 | "Parallel"
|
resultsCache.port | int | results-cache 服务的端口 | 11211
|
resultsCache.priorityClassName | string | results-cache Pod 的 PriorityClass 名称 | null
|
resultsCache.replicas | int | results-cache 副本总数 | 1
|
resultsCache.resources | string | results-cache 的资源请求和限制。默认情况下,将根据 allocatedMemory 值请求一个安全的内存限制 (floor (* 1.2 allocatedMemory))。 | null
|
resultsCache.service | object | 服务注解和标签 | {
"annotations": {},
"labels": {}
}
|
resultsCache.statefulStrategy | object | 有状态 results-cache 策略 | {
"type": "RollingUpdate"
}
|
resultsCache.terminationGracePeriodSeconds | int | 允许 results-cache 在被杀死前优雅关闭的宽限期 | 60
|
resultsCache.timeout | string | Memcached 操作超时时间 | "500ms"
|
resultsCache.tolerations | list | results-cache Pod 的容忍度 | []
|
resultsCache.topologySpreadConstraints | list | topologySpreadConstraints 允许自定义默认的 topologySpreadConstraints。它可以是如下所示的单个字典,也可以是 topologySpreadConstraints 切片。labelSelector 取自约束本身(如果存在)或由 chart 使用与服务相同的选择器生成。 | []
|
resultsCache.writebackBuffer | int | 用于缓存写回的最大对象数量 | 500000
|
resultsCache.writebackParallelism | int | 缓存写回的并行线程数 | 1
|
resultsCache.writebackSizeLimit | string | 用于缓存写回的最大内存量 | "500MB"
|
rollout_operator | object | Grafana Rollout Operator 的设置 https://github.com/grafana/helm-charts/tree/main/charts/rollout-operator | {
"enabled": false,
"podSecurityContext": {
"fsGroup": 10001,
"runAsGroup": 10001,
"runAsNonRoot": true,
"runAsUser": 10001,
"seccompProfile": {
"type": "RuntimeDefault"
}
},
"securityContext": {
"allowPrivilegeEscalation": false,
"capabilities": {
"drop": [
"ALL"
]
},
"readOnlyRootFilesystem": true
}
}
|
rollout_operator.podSecurityContext | object | podSecurityContext 是 Rollout Operator 的 Pod 安全上下文。在 OpenShift 上安装时,使用 rollout_operator: podSecurityContext: fsGroup: null runAsGroup: null runAsUser: null 覆盖 podSecurityContext 设置 | {
"fsGroup": 10001,
"runAsGroup": 10001,
"runAsNonRoot": true,
"runAsUser": 10001,
"seccompProfile": {
"type": "RuntimeDefault"
}
}
|
ruler | object | ruler 的配置 | {
"affinity": {
"podAntiAffinity": {
"requiredDuringSchedulingIgnoredDuringExecution": [
{
"labelSelector": {
"matchLabels": {
"app.kubernetes.io/component": "ruler"
}
},
"topologyKey": "kubernetes.io/hostname"
}
]
}
},
"appProtocol": {
"grpc": ""
},
"command": null,
"directories": {},
"dnsConfig": {},
"enabled": true,
"extraArgs": [],
"extraContainers": [],
"extraEnv": [],
"extraEnvFrom": [],
"extraVolumeMounts": [],
"extraVolumes": [],
"hostAliases": [],
"image": {
"registry": null,
"repository": null,
"tag": null
},
"initContainers": [],
"maxUnavailable": null,
"nodeSelector": {},
"persistence": {
"annotations": {},
"enabled": false,
"size": "10Gi",
"storageClass": null
},
"podAnnotations": {},
"podLabels": {},
"priorityClassName": null,
"replicas": 0,
"resources": {},
"serviceAnnotations": {},
"serviceLabels": {},
"terminationGracePeriodSeconds": 300,
"tolerations": [],
"topologySpreadConstraints": []
}
|
ruler.affinity | object | ruler Pod 的亲和性设置。 | Hard node anti-affinity |
ruler.appProtocol | object | 设置可选的 grpc 服务协议。例如:“grpc”、“http2”或“https” | {
"grpc": ""
}
|
ruler.command | string | 要执行的命令,而非 Docker 镜像中定义的命令 | null
|
ruler.directories | object | 包含规则文件的目录 | {}
|
ruler.dnsConfig | object | ruler Pod 的 DNSConfig | {}
|
ruler.enabled | bool | ruler 组件是可选的,可以根据需要禁用。 | true
|
ruler.extraArgs | list | ruler 的额外 CLI 参数 | []
|
ruler.extraContainers | list | 要添加到 ruler Pod 的容器 | []
|
ruler.extraEnv | list | 要添加到 ruler Pod 的环境变量 | []
|
ruler.extraEnvFrom | list | 要添加到 ruler Pod 的来自 secrets 或 configmaps 的环境变量 | []
|
ruler.extraVolumeMounts | list | 要添加到 ruler Pod 的卷挂载 | []
|
ruler.extraVolumes | list | 要添加到 ruler Pod 的卷 | []
|
ruler.hostAliases | list | 要添加的 hostAliases | []
|
ruler.image.registry | string | ruler 镜像的 Docker 注册表。覆盖 `loki.image.registry` | null
|
ruler.image.repository | string | ruler 镜像的 Docker 镜像仓库。覆盖 `loki.image.repository` | null
|
ruler.image.tag | string | ruler 镜像的 Docker 镜像标签。覆盖 `loki.image.tag` | null
|
ruler.initContainers | list | 要添加到 ruler Pod 的 Init 容器 | []
|
ruler.maxUnavailable | string | Pod Disruption Budget 的 maxUnavailable | null
|
ruler.nodeSelector | object | ruler Pod 的节点选择器 | {}
|
ruler.persistence.annotations | object | ruler PVC 的注解 | {}
|
ruler.persistence.enabled | bool | 启用创建 PVC,使用记录规则时需要。 | false
|
ruler.persistence.size | string | 持久卷大小 | "10Gi"
|
ruler.persistence.storageClass | string | 要使用的存储类。如果已定义,则使用 storageClassName | null
|
ruler.podAnnotations | object | ruler Pod 的注解 | {}
|
ruler.podLabels | object | compactor pod 的标签 | {}
|
ruler.priorityClassName | string | ruler Pod 的 PriorityClass 名称 | null
|
ruler.replicas | int | ruler 的副本数量 | 0
|
ruler.resources | object | ruler 的资源请求和限制 | {}
|
ruler.serviceAnnotations | object | ruler 服务的注解 | {}
|
ruler.serviceLabels | object | ruler 服务的标签 | {}
|
ruler.terminationGracePeriodSeconds | int | 允许 ruler 在被杀死前优雅关闭的宽限期 | 300
|
ruler.tolerations | list | ruler Pod 的容忍度 | []
|
ruler.topologySpreadConstraints | list | ruler Pod 的拓扑分散约束 | []
|
serviceAccount.annotations | object | ServiceAccount 的注解 | {}
|
serviceAccount.automountServiceAccountToken | bool | 将此开关设置为 false 以选择退出服务帐户的自动挂载 API 凭据 | true
|
serviceAccount.create | bool | 指定是否应创建 ServiceAccount | true
|
serviceAccount.imagePullSecrets | list | ServiceAccount 的镜像拉取 secrets | []
|
serviceAccount.labels | object | ServiceAccount 的标签 | {}
|
serviceAccount.name | string | 要使用的 ServiceAccount 名称。如果未设置且 create 为 true,则使用 fullname 模板生成名称 | null
|
sidecar.enableUniqueFilenames | bool | 通过在规则文件名前加上其定义所在的命名空间前缀,确保规则文件不冲突且不被覆盖。 | false
|
sidecar.image.pullPolicy | string | Docker 镜像拉取策略 | "IfNotPresent"
|
sidecar.image.repository | string | k8s Sidecar 的 Docker 注册表和镜像 | "kiwigrid/k8s-sidecar"
|
sidecar.image.sha | string | Docker 镜像 SHA 值。如果为空,则不使用 SHA 值 | ""
|
sidecar.image.tag | string | Docker 镜像标签 | "1.30.2"
|
sidecar.livenessProbe | object | 活跃度探测定义。Sidecar 默认禁用此探测。 | {}
|
sidecar.readinessProbe | object | 就绪度探测定义。Sidecar 默认禁用此探测。 | {}
|
sidecar.resources | object | Sidecar 的资源请求和限制 | {}
|
sidecar.rules.enabled | bool | 是否创建 Sidecar 以从指定的 ConfigMaps 和/或 Secrets 中摄取规则。 | true
|
sidecar.rules.folder | string | 规则将存放的文件夹。 | "/rules"
|
sidecar.rules.label | string | 带有规则的 configmaps/secrets 将被标记的标签。 | "loki_rule"
|
sidecar.rules.labelValue | string | 带有规则的 configmaps/secrets 将被设置的标签值。 | ""
|
sidecar.rules.logLevel | string | Sidecar 容器的日志级别。 | "INFO"
|
sidecar.rules.resource | string | 在 configmap、secret 或两者中搜索。 | "both"
|
sidecar.rules.script | string | 在重新加载 configmap 或 secret 后要执行的 shell 脚本的绝对路径。 | null
|
sidecar.rules.searchNamespace | string | 命名空间的逗号分隔列表。如果指定,Sidecar 将在这些命名空间中搜索 config-maps/secrets。否则将使用 Sidecar 运行所在的命名空间。也可以指定 'ALL' 在所有命名空间中搜索。 | null
|
sidecar.rules.watchClientTimeout | int | WatchClientTimeout:是客户端超时,用于配置本地 socket。如果网络中断导致所有数据包丢失且没有 RST/FIN,这是客户端在意识到并断开连接之前等待的时间。默认为 66 秒。 | 60
|
sidecar.rules.watchMethod | string | 用于检测 ConfigMap 更改的方法。使用 WATCH 时,Sidecar 将执行 WATCH 请求;使用 SLEEP 时,Sidecar 将列出所有 ConfigMap,然后休眠 60 秒。 | "WATCH"
|
sidecar.rules.watchServerTimeout | int | WatchServerTimeout:向服务器发出的请求,要求它在此时间后干净地关闭连接。默认为 60 秒;对于非 Azure K8S,更高的值(如 3600 秒 (1 小时))是可行的。 | 60
|
sidecar.securityContext | object | Sidecar 的 SecurityContext。 | {
"allowPrivilegeEscalation": false,
"capabilities": {
"drop": [
"ALL"
]
},
"readOnlyRootFilesystem": true
}
|
sidecar.skipTlsVerify | bool | 设置为 true 以跳过 kube api 调用的 TLS 验证。 | false
|
singleBinary.affinity | object | Single Binary Pod 的亲和性设置。 | Hard node anti-affinity |
singleBinary.annotations | object | Single Binary StatefulSet 的注解 | {}
|
singleBinary.autoscaling.enabled | bool | 启用自动伸缩 | false
|
singleBinary.autoscaling.maxReplicas | int | Single Binary 的最大自动伸缩副本数 | 3
|
singleBinary.autoscaling.minReplicas | int | Single Binary 的最小自动伸缩副本数 | 1
|
singleBinary.autoscaling.targetCPUUtilizationPercentage | int | Single Binary 的目标 CPU 利用率百分比 | 60
|
singleBinary.autoscaling.targetMemoryUtilizationPercentage | string | Single Binary 的目标内存利用率百分比 | null
|
singleBinary.dnsConfig | object | Single Binary Pod 的 DNS 配置 | {}
|
singleBinary.extraArgs | list | Single Binary 服务的标签 | []
|
singleBinary.extraContainers | list | 要添加到 Single Binary Loki Pod 的额外容器 | []
|
singleBinary.extraEnv | list | 要添加到 Single Binary Pod 的环境变量 | []
|
singleBinary.extraEnvFrom | list | 要添加到 Single Binary Pod 的来自 secrets 或 configmaps 的环境变量 | []
|
singleBinary.extraVolumeMounts | list | 要添加到 Single Binary Pod 的卷挂载 | []
|
singleBinary.extraVolumes | list | 要添加到 Single Binary Pod 的卷 | []
|
singleBinary.image.registry | string | Single Binary 镜像的 Docker 注册表。覆盖 `loki.image.registry` | null
|
singleBinary.image.repository | string | Single Binary 镜像的 Docker 镜像仓库。覆盖 `loki.image.repository` | null
|
singleBinary.image.tag | string | Single Binary 镜像的 Docker 镜像标签。覆盖 `loki.image.tag` | null
|
singleBinary.initContainers | list | 要添加到 Single Binary Pod 的 Init 容器 | []
|
singleBinary.nodeSelector | object | Single Binary Pod 的节点选择器 | {}
|
singleBinary.persistence.annotations | object | 卷声明的注解 | {}
|
singleBinary.persistence.enableStatefulSetAutoDeletePVC | bool | 启用 StatefulSetAutoDeletePVC 功能 | true
|
singleBinary.persistence.enabled | bool | 启用持久磁盘 | true
|
singleBinary.persistence.selector | string | 持久卷的选择器 | null
|
singleBinary.persistence.size | string | 持久卷大小 | "10Gi"
|
singleBinary.persistence.storageClass | string | 要使用的存储类。如果已定义,则使用 storageClassName | null
|
singleBinary.podAnnotations | object | Single Binary Pod 的注解 | {}
|
singleBinary.podLabels | object | 每个 `Single Binary` Pod 的附加标签 | {}
|
singleBinary.priorityClassName | string | Single Binary Pod 的 PriorityClass 名称 | null
|
singleBinary.replicas | int | Single Binary 的副本数量 | 0
|
singleBinary.resources | object | Single Binary 的资源请求和限制 | {}
|
singleBinary.selectorLabels | object | 每个 `Single Binary` Pod 的附加选择器标签 | {}
|
singleBinary.service.annotations | object | Single Binary 服务的注解 | {}
|
singleBinary.service.labels | object | Single Binary 服务的附加标签 | {}
|
singleBinary.targetModule | string | Single Binary 要加载的 Loki 模块的逗号分隔列表 | "all"
|
singleBinary.terminationGracePeriodSeconds | int | 允许 Single Binary 在被杀死前优雅关闭的宽限期 | 30
|
singleBinary.tolerations | list | Single Binary Pod 的容忍度 | []
|
tableManager | object | 已弃用 (DEPRECATED) table-manager 的配置。只有在使用已弃用的索引类型(如 Cassandra、Bigtable 或 DynamoDB)时才需要 table-manager,自从 Loki 引入自包含索引类型(如 'boltdb-shipper' 和 'tsdb')以来,就不再需要它了。这将在未来的 Helm Chart 版本中移除。 | {
"affinity": {
"podAntiAffinity": {
"requiredDuringSchedulingIgnoredDuringExecution": [
{
"labelSelector": {
"matchLabels": {
"app.kubernetes.io/component": "table-manager"
}
},
"topologyKey": "kubernetes.io/hostname"
}
]
}
},
"annotations": {},
"command": null,
"dnsConfig": {},
"enabled": false,
"extraArgs": [],
"extraContainers": [],
"extraEnv": [],
"extraEnvFrom": [],
"extraVolumeMounts": [],
"extraVolumes": [],
"image": {
"registry": null,
"repository": null,
"tag": null
},
"nodeSelector": {},
"podAnnotations": {},
"podLabels": {},
"priorityClassName": null,
"resources": {},
"retention_deletes_enabled": false,
"retention_period": 0,
"service": {
"annotations": {},
"labels": {}
},
"terminationGracePeriodSeconds": 30,
"tolerations": []
}
|
tableManager.affinity | object | table-manager Pod 的亲和性设置。 | Hard node and anti-affinity |
tableManager.annotations | object | table-manager Deployment 的注解 | {}
|
tableManager.command | string | 要执行的命令,而非 Docker 镜像中定义的命令 | null
|
tableManager.dnsConfig | object | table-manager Pod 的 DNS 配置 | {}
|
tableManager.enabled | bool | 指定是否应启用 table-manager | false
|
tableManager.extraArgs | list | table-manager 的额外 CLI 参数 | []
|
tableManager.extraContainers | list | 要添加到 table-manager Pod 的容器 | []
|
tableManager.extraEnv | list | 要添加到 table-manager Pod 的环境变量 | []
|
tableManager.extraEnvFrom | list | 要添加到 table-manager Pod 的来自 secrets 或 configmaps 的环境变量 | []
|
tableManager.extraVolumeMounts | list | 要添加到 table-manager Pod 的卷挂载 | []
|
tableManager.extraVolumes | list | 要添加到 table-manager Pod 的卷 | []
|
tableManager.image.registry | string | table-manager 镜像的 Docker 注册表。覆盖 `loki.image.registry` | null
|
tableManager.image.repository | string | table-manager 镜像的 Docker 镜像仓库。覆盖 `loki.image.repository` | null
|
tableManager.image.tag | string | table-manager 镜像的 Docker 镜像标签。覆盖 `loki.image.tag` | null
|
tableManager.nodeSelector | object | table-manager Pod 的节点选择器 | {}
|
tableManager.podAnnotations | object | table-manager Pod 的注解 | {}
|
tableManager.podLabels | object | table-manager Pod 的标签 | {}
|
tableManager.priorityClassName | string | table-manager Pod 的 PriorityClass 名称 | null
|
tableManager.resources | object | table-manager 的资源请求和限制 | {}
|
tableManager.retention_deletes_enabled | bool | 启用按保留期删除 | false
|
tableManager.retention_period | int | 设置保留期 | 0
|
tableManager.service.annotations | object | table-manager 服务的注解 | {}
|
tableManager.service.labels | object | table-manager 服务的附加标签 | {}
|
tableManager.terminationGracePeriodSeconds | int | 允许 table-manager 在被杀死前优雅关闭的宽限期 | 30
|
tableManager.tolerations | list | table-manager Pod 的容忍度 | []
|
test | object | 用于配置可选 Helm 测试的部分 | {
"annotations": {},
"canaryServiceAddress": "http://loki-canary:3500/metrics",
"enabled": true,
"image": {
"digest": null,
"pullPolicy": "IfNotPresent",
"registry": "docker.io",
"repository": "grafana/loki-helm-test",
"tag": "ewelch-distributed-helm-chart-17db5ee"
},
"labels": {},
"prometheusAddress": "",
"timeout": "1m"
}
|
test.annotations | object | 测试 Pod 的附加注解 | {}
|
test.canaryServiceAddress | string | 用于直接查询 canary 的指标端点进行测试,此方法避免了测试需要 prometheus。这是一种比使用 prometheusAddress 更新的方法,使得测试不依赖于 prometheus | "http://loki-canary:3500/metrics"
|
test.image | object | lokiCanary.image | {
"digest": null,
"pullPolicy": "IfNotPresent",
"registry": "docker.io",
"repository": "grafana/loki-helm-test",
"tag": "ewelch-distributed-helm-chart-17db5ee"
}
|
test.image.digest | string | 用镜像摘要覆盖镜像标签 | null
|
test.image.pullPolicy | string | Docker 镜像拉取策略 | "IfNotPresent"
|
test.image.registry | string | Docker 注册表 | "docker.io"
|
test.image.repository | string | Docker 镜像仓库 | "grafana/loki-helm-test"
|
test.image.tag | string | 覆盖镜像标签,其默认值是 chart 的 appVersion | "ewelch-distributed-helm-chart-17db5ee"
|
test.labels | object | 测试 Pod 的附加标签 | {}
|
test.prometheusAddress | string | 用于测试查询的 prometheus 服务器地址。这将覆盖为 canaryServiceAddress 设置的任何值。此设置保留是为了向后兼容,可能会在未来的版本中移除。先前的值是 'http://prometheus:9090' | ""
|
test.timeout | string | 测试失败前重试的次数 | "1m"
|
write.affinity | object | Write Pod 的亲和性设置。 | Hard node anti-affinity |
write.annotations | object | Write StatefulSet 的注解 | {}
|
write.autoscaling.behavior | object | 伸缩时的行为策略。 | {
"scaleDown": {
"policies": [
{
"periodSeconds": 1800,
"type": "Pods",
"value": 1
}
],
"stabilizationWindowSeconds": 3600
},
"scaleUp": {
"policies": [
{
"periodSeconds": 900,
"type": "Pods",
"value": 1
}
]
}
}
|
write.autoscaling.behavior.scaleUp | object | 有关缩容 (scaledown) 详情,请参阅 https://github.com/grafana/loki/blob/main/docs/sources/operations/storage/wal.md#how-to-scale-updown | {
"policies": [
{
"periodSeconds": 900,
"type": "Pods",
"value": 1
}
]
}
|
write.autoscaling.enabled | bool | 为 write 启用自动伸缩。 | false
|
write.autoscaling.maxReplicas | int | write 的最大自动伸缩副本数。 | 6
|
write.autoscaling.minReplicas | int | write 的最小自动伸缩副本数。 | 2
|
write.autoscaling.targetCPUUtilizationPercentage | int | write 的目标 CPU 利用率百分比。 | 60
|
write.autoscaling.targetMemoryUtilizationPercentage | string | write 的目标内存利用率百分比。 | null
|
write.dnsConfig | object | Write Pod 的 DNS 配置 | {}
|
write.extraArgs | list | write 的额外 CLI 参数 | []
|
write.extraContainers | list | 要添加到 write Pod 的容器 | []
|
write.extraEnv | list | 要添加到 write Pod 的环境变量 | []
|
write.extraEnvFrom | list | 要添加到 write Pod 的来自 secrets 或 configmaps 的环境变量 | []
|
write.extraVolumeClaimTemplates | list | 要添加到 StatefulSet 的 volumeClaimTemplates | []
|
write.extraVolumeMounts | list | 要添加到 write Pod 的卷挂载 | []
|
write.extraVolumes | list | 要添加到 write Pod 的卷 | []
|
write.image.registry | string | write 镜像的 Docker 注册表。覆盖 `loki.image.registry` | null
|
write.image.repository | string | write 镜像的 Docker 镜像仓库。覆盖 `loki.image.repository` | null
|
write.image.tag | string | write 镜像的 Docker 镜像标签。覆盖 `loki.image.tag` | null
|
write.initContainers | list | 要添加到 write Pod 的 Init 容器 | []
|
write.lifecycle | object | write 容器的生命周期 | {}
|
write.nodeSelector | object | Write Pod 的节点选择器 | {}
|
write.persistence.annotations | object | 卷声明的注解 | {}
|
write.persistence.dataVolumeParameters | object | 当 volumeClaimEnabled 为 false 时,用于 data 卷的参数 | {
"emptyDir": {}
}
|
write.persistence.enableStatefulSetAutoDeletePVC | bool | 启用 StatefulSetAutoDeletePVC 功能 | false
|
write.persistence.selector | string | 持久卷的选择器 | null
|
write.persistence.size | string | 持久卷大小 | "10Gi"
|
write.persistence.storageClass | string | 要使用的存储类。如果已定义,则使用 storageClassName | null
|
write.persistence.volumeClaimsEnabled | bool | 在 pod 规范中启用卷声明 | true
|
write.podAnnotations | object | Write Pod 的注解 | {}
|
write.podLabels | object | 每个 `write` Pod 的附加标签 | {}
|
write.podManagementPolicy | string | 默认并行部署所有 Pod。 | "Parallel"
|
write.priorityClassName | string | Write Pod 的 PriorityClass 名称 | null
|
write.replicas | int | write 的副本数量 | 3
|
write.resources | object | write 的资源请求和限制 | {}
|
write.selectorLabels | object | 每个 `write` Pod 的附加选择器标签 | {}
|
write.service.annotations | object | Write 服务的注解 | {}
|
write.service.labels | object | Write 服务的附加标签 | {}
|
write.targetModule | string | write 要加载的 Loki 模块的逗号分隔列表 | "write"
|
write.terminationGracePeriodSeconds | int | 允许 write 在被杀死前优雅关闭的宽限期。特别是 ingester,必须增加此值。它必须足够长,以便 writer 可以优雅地关闭,刷写/传输所有数据,并在关闭时成功离开成员环。 | 300
|
write.tolerations | list | Write Pod 的容忍度 | []
|
write.topologySpreadConstraints | list | Write Pod 的拓扑分散约束 | []
|