alloy-operator

by Grafana

Helm chartv0.9.4App 1.14.4

Grafana Alloy Operator, providing innovative ways for creating instances of Grafana Alloy.

About this chart

alloy-operator

Grafana Alloy Operator, providing innovative ways for creating instances of Grafana Alloy.

Maintainers

NameEmailUrl
petewall[email protected]
TylerHelmuth[email protected]

Source Code

Requirements

RepositoryNameVersion
podlogs-crd0.0.0
https://grafana.github.io/helm-chartsalloy-crd1.0.1

Values

Pod Settings

KeyTypeDefaultDescription
affinityobject{}Set the affinity for the Alloy Operator pods.
nodeSelectorobject{"kubernetes.io/os":"linux"}Set the node selector for the Alloy Operator pods.
podAnnotationsobject{}Additional annotations to add to the Alloy Operator pods.
podDisruptionBudgetobject{}Configure a PodDisruptionBudget for the Alloy Operator pods.
podLabelsobject{}Additional labels to add to the Alloy Operator pods.
podSecurityContextobject{"runAsNonRoot":true}Set the security context for the Alloy Operator pods.
priorityClassNamestring""Sets the priority class name for the Alloy Operator pods.
tolerationslist[]Set the tolerations for the Alloy Operator pods.
topologySpreadConstraintslist[]Set the topology spread constraints for the Alloy Operator pods.

CRDs

KeyTypeDefaultDescription
crds.deployAlloyCRDbooltrueShould this chart deploy the Alloy CRD?
crds.deployPodLogsCRDboolfalseShould this chart deploy the PodLogs CRD?

Operator Settings

KeyTypeDefaultDescription
extraArgslist[]Additional arguments to pass to the Alloy Operator.

Deployment Settings

KeyTypeDefaultDescription
fullnameOverridestring""Overrides the chart's computed fullname. Used to change the full prefix of resource names.
global.namespaceOverridestring""Global namespace override. When set, all resources will be deployed to this namespace instead of the Helm release namespace. Takes lower precedence than namespaceOverride.
nameOverridestring""Overrides the chart's name. Used to change the infix in the resource names.
namespaceOverridestring""Overrides the namespace for all resources deployed by this chart. When empty, resources are deployed to the Helm release namespace.
replicaCountint1How many replicas to use for the Alloy Operator Deployment.

Image Settings

KeyTypeDefaultDescription
global.image.pullPolicystring""Global image pull policy override.
global.image.pullSecretslist[]Global image pull secrets.
global.image.registrystring""Global image registry override.
global.imagePullPolicystring""Global image pull policy override. Takes lower precedence than global.image.pullPolicy.
global.imageRegistrystring""Global image registry override. Takes lower precedence than global.image.registry.
image.digeststring""Alloy Operator image digest. If set, will override the tag. Format: sha256:<digest>.
image.pullPolicystring"IfNotPresent"The pull policy for images.
image.pullSecretslist[]Optional set of image pull secrets.
image.registrystring"ghcr.io"Alloy Operator image registry
image.repositorystring"grafana/alloy-operator"Alloy Operator image repository
image.tagstring""Alloy Operator image tag. When empty, the Chart's appVersion is used.

Leader Election Settings

KeyTypeDefaultDescription
leaderElection.enabledbooltrueWhether to enable leader election for the Alloy Operator. This is important when using multiple replicas or when rolling updates. If set to false, you risk having split-brain scenarios where multiple instances of the Alloy Operator try to manage the same Alloy instances.

Probes

KeyTypeDefaultDescription
livenessProbeobject{"initialDelaySeconds":15,"periodSeconds":20}Liveness probe settings
readinessProbeobject{"initialDelaySeconds":5,"periodSeconds":10}Readiness probe settings

Alloy Management Settings

KeyTypeDefaultDescription
namespaceslist[]Restrict the Alloy Operator to only manage Alloy instances in the given list of namespaces.
ownNamespaceOnlyboolfalseRestrict the Alloy Operator to its own namespace only. Overrides the namespaces setting.

RBAC Settings

KeyTypeDefaultDescription
rbac.createbooltrueWhether to create the necessary RBAC resources for the Alloy Operator.
rbac.createClusterRolesbooltrueCreate ClusterRoles for the Alloy Operator. If set to false, only Roles and RoleBindings will be created. This setting requires the use of namespaces or ownNamespaceOnly to be set.

Resources

KeyTypeDefaultDescription
resources.limitsobject{}Set the resource limits for the Alloy Operator pods.
resources.requestsobject{}Set the resource requests for the Alloy Operator pods.

Container Settings

KeyTypeDefaultDescription
securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true}Set the security context for the operator container.

Service

KeyTypeDefaultDescription
service.health.portint8081The port number for the health probes.
service.metrics.portint8082The port number for the metrics service.
service.typestring"ClusterIP"The type of service to create for the operator.

Service Account Settings

KeyTypeDefaultDescription
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.automountbooltrueWhether the Alloy Operator pod should automatically mount the service account token.
serviceAccount.createbooltrueWhether to create a service account for the Alloy Operator deployment.
serviceAccount.labelsobject{}Additional labels to add to the service account
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template

Service Monitor

KeyTypeDefaultDescription
serviceMonitor.additionalLabelsobject{}Set of labels to transfer from the Kubernetes Service onto the target
serviceMonitor.enabledboolfalseWhether to create a ServiceMonitor
serviceMonitor.intervalstring"60s"Set how frequently Prometheus should scrape
serviceMonitor.metricRelabelingslist[]Set ServiceMonitor metricRelabelings to apply to metrics after scraping.
serviceMonitor.relabelingslist[]Set ServiceMonitor relabelings to apply before scraping.
serviceMonitor.scrapeTimeoutstring"10s"Set timeout for scrape
serviceMonitor.targetLabelslist[]Set of labels to transfer from the Kubernetes Service onto the target
serviceMonitor.telemetryPathstring"/metrics"Set path to metrics path

Deploy alloy-operator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has alloy-operator on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartalloy-operator is pinned at v0.9.4 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply