From a75260fff900b144fb3c2375f57c7ee034fca029 Mon Sep 17 00:00:00 2001 From: Philip Laine Date: Fri, 16 Jun 2023 11:12:41 +0200 Subject: [PATCH] Add health checks to Datadog (#997) --- CHANGELOG.md | 1 + .../datadog/templates/kustomization.yaml.tpl | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a36018bf..7549e95ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - [#989](https://github.com/XenitAB/terraform-modules/pull/989) Update Azad-Kube-Proxy to v0.0.47. - [#996](https://github.com/XenitAB/terraform-modules/pull/996) Rename Datadog agent. - [#992](https://github.com/XenitAB/terraform-modules/pull/992) Add AKS cluster principal_id to aksmsi group. +- [#997](https://github.com/XenitAB/terraform-modules/pull/997) Add health checks to Datadog. ## 2023.06.3 diff --git a/modules/kubernetes/datadog/templates/kustomization.yaml.tpl b/modules/kubernetes/datadog/templates/kustomization.yaml.tpl index e288a41fb..fe8837bca 100644 --- a/modules/kubernetes/datadog/templates/kustomization.yaml.tpl +++ b/modules/kubernetes/datadog/templates/kustomization.yaml.tpl @@ -10,7 +10,11 @@ spec: name: flux-system path: "./platform/${cluster_id}/datadog-operator/" prune: true - validation: client + healthChecks: + - apiVersion: apps/v1 + kind: Deployment + namespace: datadog + name: datadog-operator --- apiVersion: kustomize.toolkit.fluxcd.io/v1beta2 kind: Kustomization @@ -26,4 +30,12 @@ spec: name: flux-system path: "./platform/${cluster_id}/datadog/" prune: true - validation: client + healthChecks: + - apiVersion: apps/v1 + kind: Deployment + namespace: datadog + name: datadog-cluster-agent + - apiVersion: apps/v1 + kind: DaemonSet + namespace: datadog + name: datadog-agent