edge

by Mezmo

Helm chartv1.6.1App 8.0.1

A Helm chart for deploying Mezmo Edge

About this chart

Mezmo Edge

Helm chart for managing a Mezmo Edge deployment

Prerequisites

  • Kubernetes 1.10+ (1.23+ if using autoscaling)
  • Mezmo Account with Edge Pipeline support
  • Mezmo API Token

Quickstart

helm install edge mezmo/edge \
  --set mezmoApiAccessToken=<MEZMO_API_ACCESS_TOKEN>

In the case above, using edge as the name will be reported in our UI for all edge pipelines it gets assigned. If you have multiple instances to deploy, consider using deployment groups and unique names per helm install.

Kubernetes Logs Source

If you plan to use the Kubernetes Logs Source in your Edge deployment to read pod logs, please be sure to enable it in your Helm values so it has the right permissions set:

Note: It's also recommended to use a DaemonSet deployment to gain access to all worker nodes and their pod logs.

helm install edge mezmo/edge \
  --set mezmoApiAccessToken=<MEZMO_API_ACCESS_TOKEN> \
  --set enableK8sLogs=true \
  --set useDaemonSet=true

Service Ports

Service ports are for a Kubernetes service mapping that allows you to use different sources in your edge pipeline that setup TCP/UDP sockets for receiving data. Ex: Syslog, HTTP, DataDog Agent, etc

By default ports in the range [8000, 8010] are configured for the Kubernetes Service. See service.sourcePorts.* values for configuring different ranges.

Custom service port setup

If you plan on ONLY needing the Kubernetes Log Source to read pod log files, you can turn off the service ports completely

helm install edge mezmo/edge \
  --set mezmoApiAccessToken=<MEZMO_API_ACCESS_TOKEN> \
  --set service.sourcePorts.end=0 \
  --set enableK8sLogs=true \
  --set useDaemonSet=true

Expounding on that capability, you can turn off the port range configure two individual ports (syslog and http) to be exposed:

helm install edge mezmo/edge \
  --set mezmoApiAccessToken=<MEZMO_API_ACCESS_TOKEN> \
  --set service.sourcePorts.end=0 \
  --set service.sourcePorts.list="{514,80}"

Finally, you can also override the default range for a custom one:

helm install edge mezmo/edge \
  --set mezmoApiAccessToken=<MEZMO_API_ACCESS_TOKEN> \
  --set service.sourcePorts.start=20000 \
  --set service.sourcePorts.end=20020

Configuration

Values

KeyTypeDefaultDescription
mezmoApiAccessTokenstringYour Mezmo API access token. This has a lower precedence than mezmoApiAccessSecret
mezmoApiAccessSecretstringExisting secret containing your Mezmo API access token. Given secret should have the token in a key named api-access-token and be in the same namespace as the Edge instance. This takes precedence over mezmoApiAccessToken
mezmoDeploymentGroupstringDeployment group to apply to this Edge instance. Leaving undefined pulls all Edge pipelines for the org
mezmoApiSchemestring"https"The scheme to use for the Mezmo API URL
mezmoApiHoststring"api.mezmo.com"The hostname(:port) of the Mezmo API
useDaemonSetbooleanfalseWhether to use DaemonSet deployment model, or StatefulSet deployment model (STS is default)
remoteTaskInitialPollDelayint.5How long to wait post start-up to poll for remote tasks (seconds)
remoteTaskPollStepDelay.int.2How long to wait between task polling cycles (seconds)
remoteTaskExecutionTimeout.int.60How long to wait for remote task calls to complete (seconds)
namespacestringOptional namespace for compartmentalization
logLevelstringinfoControls the logging verbosity of the deployment
autoscaling.enabledbooleanfalseWhether or not to enable a HorizontalPodAutoscaler for this deployment
service.sourcePorts.startint8000The start of the port range (inclusive [start, end])
service.sourcePorts.endint8010The end of the port range (set 0 or "" to disable port range)
service.sourcePorts.listarray[][]Optional list of discrete ports to configure on the service
enableK8sLogsbooleanfalseWhether or not to add ClusterRole and Volume access required for k8s logs source
pvcNamestring""(Statefulset Deployments Only) Optional name for an existing PersistentVolumeClaim to use for disk buffering, aggregate persistence and k8s log checkpoints. Leaving undefined will default to ephemeral storage lasting the lifetime of the pod
daemonsetVolumeHostPathstring/data/edge(Daemonset Deployments Only) Kubernetes worker node host path to use for disk buffering, aggregate persistence and k8s logs checkpoints.
maxDiskBufferBytesint268435488 (256MiB)Optional max number of bytes to store in a disk-backed buffer.
maxMemBufferEventsint1000Optional max number of events to store in a memory buffer.
reduceByteThresholdPerStateint104857600 (100MiB)Optional max number of bytes to store in a memory for any given reduce component.
reduceByteThresholdAllStatesint1073741824 (1GiB)Optional max number of bytes to store in a memory for all given reduce components.

* Port 8686 is reserved for internal use, and should not be additionally configured for sourcePorts

Deploy edge with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has edge 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 chartedge is pinned at v1.6.1 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