add wpa config (#21641)

Signed-off-by: Ahmed Mezghani <ahmed.mezghani@outlook.com>
This commit is contained in:
Ahmed Mezghani
2020-03-27 06:44:23 -07:00
committed by GitHub
parent 6cb0394a7a
commit cd9513e07a
6 changed files with 33 additions and 1 deletions
+4
View File
@@ -1,5 +1,9 @@
# Datadog changelog
## 2.1.1
* Add option to enable WPA in the Cluster Agent.
## 2.1.0
* Changed the default for `processAgent.enabled` to `true`.
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: datadog
version: 2.1.0
version: 2.1.1
appVersion: "7"
description: Datadog Agent
keywords:
+11
View File
@@ -0,0 +1,11 @@
datadog:
apiKey: "00000000000000000000000000000000"
appKey: "0000000000000000000000000000000000000000"
clusterAgent:
enabled: true
metricsProvider:
enabled: true
wpaController: true
+10
View File
@@ -71,6 +71,16 @@ rules:
- "/healthz"
verbs:
- get
{{- if and .Values.clusterAgent.metricsProvider.enabled .Values.clusterAgent.metricsProvider.wpaController }}
- apiGroups:
- "datadoghq.com"
resources:
- "watermarkpodautoscalers"
verbs:
- "list"
- "get"
- "watch"
{{- end }}
---
apiVersion: {{ template "rbac.apiVersion" . }}
kind: ClusterRoleBinding
@@ -95,6 +95,8 @@ spec:
value: {{ .Values.clusterAgent.metricsProvider.enabled | quote }}
- name: DD_EXTERNAL_METRICS_PROVIDER_PORT
value: {{ .Values.clusterAgent.metricsProvider.service.port | quote }}
- name: DD_EXTERNAL_METRICS_PROVIDER_WPA_CONTROLLER
value: {{ .Values.clusterAgent.metricsProvider.wpaController | quote }}
{{- end }}
{{- if .Values.datadog.clusterChecks.enabled }}
- name: DD_CLUSTER_CHECKS_ENABLED
+5
View File
@@ -411,6 +411,11 @@ clusterAgent:
metricsProvider:
enabled: false
## @param wpaController - boolean - optional
## Enable informer and controller of the watermark pod autoscaler
#
wpaController: false
## Configuration for the service for the cluster-agent metrics server
#
service: