From 252de382d4a9f0b46ae5fe147c340a92c8e56b93 Mon Sep 17 00:00:00 2001 From: pgijsbertsen <117165507+pgijsbertsen@users.noreply.github.com> Date: Sun, 14 Dec 2025 21:28:11 +0100 Subject: [PATCH] chore(alloy): Add settings for logparsing --- kustomize-bases/alloy/values.yaml | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/kustomize-bases/alloy/values.yaml b/kustomize-bases/alloy/values.yaml index 59e3dae..67c240e 100644 --- a/kustomize-bases/alloy/values.yaml +++ b/kustomize-bases/alloy/values.yaml @@ -15,6 +15,28 @@ alloy: # -- Key in ConfigMap to get config from. key: config.alloy + # -- Minimum stability level of components and behavior to enable. Must be + # one of "experimental", "public-preview", or "generally-available". + stabilityLevel: "generally-available" + + # -- Enables Grafana Alloy container's http server port for debugging purposes. + enableHttpServerPort: true + + # -- Enables sending Grafana Labs anonymous usage stats to help improve Grafana Alloy. + enableReporting: false + + # DAC_READ_SEARCH: this is required so that Alloy can read the kube-apiserver audit logs written as `nobody` user + securityContext: + capabilities: + add: + - DAC_READ_SEARCH + + mounts: + # -- Mount /var/log from the host into the container for log collection. + varlog: true + # -- Mount /var/lib/docker/containers from the host into the container for log collection. + dockercontainers: true + rbac: # -- Whether to create RBAC resources for Alloy. create: true @@ -77,6 +99,20 @@ serviceAccount: # Whether the Alloy pod should automatically mount the service account token. automountServiceAccountToken: true +controller: + # -- Type of controller to use for deploying Grafana Alloy in the cluster. + # Must be one of 'daemonset', 'deployment', or 'statefulset'. + type: "daemonset" + + # -- Tolerations to apply to Grafana Alloy pods. + tolerations: + - key: node-role.kubernetes.io/control-plane + operator: Exists + effect: NoSchedule + - key: node-role.kubernetes.io/master + operator: Exists + effect: NoSchedule + # Options for the extra controller used for config reloading. configReloader: # -- Enables automatically reloading when the Alloy config changes.