astro
by Fairwinds
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 Value | 1.0.0+ Value |
|---|---|
controller.rbac.create | rbac.create |
controller.serviceAccount.create | deployment.serviceAccount.create |
controller.serviceAccount.name | deployment.serviceAccount.name |
New values that were previously not available:
deployment.replicas
Prerequisites
Kubernetes 1.11+, Helm 2.13+
Values
| Key | Type | Default | Description |
|---|---|---|---|
| image.repository | string | "us-docker.pkg.dev/fairwinds-ops/oss/astro" | Docker image repo |
| image.tag | string | "v1.6.0" | Docker image tag |
| image.pullPolicy | string | "IfNotPresent" | Docker image pull policy |
| resources | object | {"limits":{"cpu":"100m","memory":"128Mi"},"requests":{"cpu":"100m","memory":"128Mi"}} | The resources block for the deployment. |
| nodeSelector | object | {} | Deployment ndoeSelector |
| tolerations | list | [] | Deployment tolerations |
| affinity | object | {} | Deployment affinity |
| datadog.apiKey | string | "" | Datadog API key |
| datadog.appKey | string | "" | Datadog app key |
| rbac.create | bool | true | If true, RBAC resources will be created. |
| deployment.env | string | nil | Map of key value pairs for environment variables to pass into deployment. Ex.: env: THING: value THING2: value2 |
| deployment.serviceAccount.create | bool | true | If true, a service account will be created. If false, you must set deployment.serviceAccount.name. |
| deployment.serviceAccount.name | string | nil | The name of an existing service account to use. |
| deployment.replicas | int | 2 | The number of replicas to use. |
| secret.create | bool | true | If true, a secret with API credentials will be created. If false, you must set secret.name |
| secret.name | string | nil | The name of an existing secret to mount to the container. |
| definitionsPath | string | "conf.yml" | The path to the monitor definitions configuration. This can be a local path or a URL. |
| owner | string | "astro" | A unique name to designate as teh owner. This will be applied as a tag to identified managed monitors. |
| dryRun | bool | false | When set to true monitors will not be managed in datadog. |
| custom_config.enabled | bool | false | If true a custom configuration must be specified in custom_config.data. |
| custom_config.data | string | "" | 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartastro is pinned at v2.0.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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