astro

by Fairwinds

Helm chartv2.0.0App 1.6.0Verified publisher

Emit datadog monitors based on kubernetes state.

About this chart

Astro

Astro was designed to simplify datadog monitor administration. This is an operator that emits datadog monitors based on kubernetes state. The operator responds to changes of resources in your kubernetes cluster and will manage datadog monitors based on the configured state.

More information about astro is available on GitHub.

Installation

We recommend installing astro in its own namespace and with a simple release name:

helm repo add fairwinds-stable https://charts.fairwinds.com/stable
helm install astro fairwinds-stable/astro --namespace astro

Changes in 2.0.0

The default image now comes from Google Artifact Registry (us-docker.pkg.dev/fairwinds-ops/oss/astro) instead of Quay. If you mirror images or allow registries explicitly, update your configuration before upgrading.

Changes to chart values in 1.0.0+

When upgrading from a chart version below 1.0.0 to 1.0.0+ take into account the following changes in values:

< 1.0.0 Value1.0.0+ Value
controller.rbac.createrbac.create
controller.serviceAccount.createdeployment.serviceAccount.create
controller.serviceAccount.namedeployment.serviceAccount.name

New values that were previously not available:

  • deployment.replicas

Prerequisites

Kubernetes 1.11+, Helm 2.13+

Values

KeyTypeDefaultDescription
image.repositorystring"us-docker.pkg.dev/fairwinds-ops/oss/astro"Docker image repo
image.tagstring"v1.6.0"Docker image tag
image.pullPolicystring"IfNotPresent"Docker image pull policy
resourcesobject{"limits":{"cpu":"100m","memory":"128Mi"},"requests":{"cpu":"100m","memory":"128Mi"}}The resources block for the deployment.
nodeSelectorobject{}Deployment ndoeSelector
tolerationslist[]Deployment tolerations
affinityobject{}Deployment affinity
datadog.apiKeystring""Datadog API key
datadog.appKeystring""Datadog app key
rbac.createbooltrueIf true, RBAC resources will be created.
deployment.envstringnilMap of key value pairs for environment variables to pass into deployment. Ex.: env: THING: value THING2: value2
deployment.serviceAccount.createbooltrueIf true, a service account will be created. If false, you must set deployment.serviceAccount.name.
deployment.serviceAccount.namestringnilThe name of an existing service account to use.
deployment.replicasint2The number of replicas to use.
secret.createbooltrueIf true, a secret with API credentials will be created. If false, you must set secret.name
secret.namestringnilThe name of an existing secret to mount to the container.
definitionsPathstring"conf.yml"The path to the monitor definitions configuration. This can be a local path or a URL.
ownerstring"astro"A unique name to designate as teh owner. This will be applied as a tag to identified managed monitors.
dryRunboolfalseWhen set to true monitors will not be managed in datadog.
custom_config.enabledboolfalseIf true a custom configuration must be specified in custom_config.data.
custom_config.datastring""An astro configuration file. See the Astro repo readme for more details.

Deploy astro with OpenTenant

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