From f8500ca19dd8509810ae90e8227d5fb717c76d07 Mon Sep 17 00:00:00 2001 From: Peter Rifel Date: Tue, 2 Jul 2019 09:47:09 -0700 Subject: [PATCH] [stable/datadog] Add priorityClassName to Cluster Agent deployment (#15135) Signed-off-by: Peter Rifel --- stable/datadog/Chart.yaml | 2 +- stable/datadog/README.md | 1 + stable/datadog/templates/cluster-agent-deployment.yaml | 3 +++ stable/datadog/values.yaml | 5 +++++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/stable/datadog/Chart.yaml b/stable/datadog/Chart.yaml index 520fcf21e5..29d3506f31 100755 --- a/stable/datadog/Chart.yaml +++ b/stable/datadog/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: datadog -version: 1.31.3 +version: 1.31.4 appVersion: 6.10.1 description: DataDog Agent keywords: diff --git a/stable/datadog/README.md b/stable/datadog/README.md index 94e4c0e37f..28ce819903 100644 --- a/stable/datadog/README.md +++ b/stable/datadog/README.md @@ -305,6 +305,7 @@ helm install --name \ | `clusterAgent.metricsProvider.enabled` | Enable Datadog metrics as a source for HPA scaling | `false` | | `clusterAgent.clusterChecks.enabled` | Enable Cluster Checks on both the Cluster Agent and the Agent daemonset | `false` | | `clusterAgent.confd` | Additional check configurations (static and Autodiscovery) | `nil` | +| `clusterAgent.priorityClassName` | Name of the priorityClass to apply to the Cluster Agent | `nil` | | `clusterAgent.resources.requests.cpu` | CPU resource requests | `200m` | | `clusterAgent.resources.limits.cpu` | CPU resource limits | `200m` | | `clusterAgent.resources.requests.memory` | Memory resource requests | `256Mi` | diff --git a/stable/datadog/templates/cluster-agent-deployment.yaml b/stable/datadog/templates/cluster-agent-deployment.yaml index c904d8dd12..13524f8cdc 100644 --- a/stable/datadog/templates/cluster-agent-deployment.yaml +++ b/stable/datadog/templates/cluster-agent-deployment.yaml @@ -33,6 +33,9 @@ spec: ] }] spec: + {{- if .Values.clusterAgent.priorityClassName }} + priorityClassName: "{{ .Values.clusterAgent.priorityClassName }}" + {{- end }} {{- if .Values.clusterAgent.image.pullSecrets }} imagePullSecrets: {{ toYaml .Values.clusterAgent.image.pullSecrets | indent 8 }} diff --git a/stable/datadog/values.yaml b/stable/datadog/values.yaml index b177814533..a97484087f 100644 --- a/stable/datadog/values.yaml +++ b/stable/datadog/values.yaml @@ -346,6 +346,11 @@ clusterAgent: # cpu: 200m # memory: 256Mi + ## @param priorityclassName - string - optional + ## Name of the priorityClass to apply to the Cluster Agent + + # priorityClassName: system-cluster-critical + ## @param livenessProbe - object - optional ## Override the agent's liveness probe logic from the default: ## In case of issues with the probe, you can disable it with the