跳转至

grafana-agent-operator

Version: 0.2.16 Type: application AppVersion: 0.34.1

A Helm chart for Grafana Agent Operator

⚠️ Please create issues relating to this Helm chart in the Agent repo.

Source Code

Note that this chart does not provision custom resources like GrafanaAgent and MetricsInstance (formerly PrometheusInstance) or any *Monitor resources.

To learn how to deploy these resources, please see Grafana's Agent Operator getting started guide.

CRDs

The CRDs are synced into this chart manually (for now) from the Grafana Agent GitHub repo. To learn more about how Helm manages CRDs, please see Custom Resource Definitions from the Helm docs.

Get Repo Info

helm repo add grafana https://helm-charts.itboon.top/grafana
helm repo update

See helm repo for command documentation.

Installing the Chart

To install the chart with the release name my-release:

helm install my-release grafana/grafana-agent-operator

Uninstalling the Chart

To uninstall/delete the my-release deployment:

helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Upgrading an existing Release to a new major version

A major chart version change (like v1.2.3 -> v2.0.0) indicates that there is an incompatible breaking change needing manual actions. Until this chart's version reaches v1.0, there are no promises of backwards compatibility.

Values

Key Type Default Description
affinity object {} Pod affinity configuration
annotations object {} Annotations for the Deployment
containerSecurityContext object {} Container security context (allowPrivilegeEscalation, etc.)
extraArgs list [] List of additional cli arguments to configure agent-operator (example: --log.level)
fullnameOverride string "" Overrides the chart's computed fullname
image.pullPolicy string "IfNotPresent" Image pull policy
image.pullSecrets list [] Image pull secrets
image.registry string "docker.io" Image registry
image.repository string "grafana/agent-operator" Image repo
image.tag string "v0.34.1" Image tag
kubeletService object {"namespace":"default","serviceName":"kubelet"} If both are set, Agent Operator will create and maintain a service for scraping kubelets https://grafana.com/docs/agent/latest/operator/getting-started/#monitor-kubelets
nameOverride string "" Overrides the chart's name
nodeSelector object {} nodeSelector configuration
podAnnotations object {} Annotations for the Deployment Pods
podLabels object {} Annotations for the Deployment Pods
podSecurityContext object {} Pod security context (runAsUser, etc.)
rbac.create bool true Toggle to create ClusterRole and ClusterRoleBinding
rbac.podSecurityPolicyName string "" Name of a PodSecurityPolicy to use in the ClusterRole. If unset, no PodSecurityPolicy is used.
resources object {} Resource limits and requests config
serviceAccount.create bool true Toggle to create ServiceAccount
serviceAccount.name string nil Service account name
tolerations list [] Tolerations applied to Pods