mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/datadog] allow host networking for metrics (#15206)
* [stable/datadog] allow host networking for metrics Signed-off-by: Doug Winter <doug.winter@isotoma.com> * doc update Signed-off-by: Doug Winter <doug.winter@isotoma.com> * Update stable/datadog/templates/agent-service-metrics.yaml Co-Authored-By: Cedric Lamoriniere <cedric.lamoriniere@datadoghq.com> Signed-off-by: Doug Winter <doug.winter@isotoma.com> * Update stable/datadog/values.yaml Co-Authored-By: Cedric Lamoriniere <cedric.lamoriniere@datadoghq.com> Signed-off-by: Doug Winter <doug.winter@isotoma.com> * annotations is unused Signed-off-by: Doug Winter <doug.winter@isotoma.com> * Rework structure of values to match usage Signed-off-by: Andrew Plummer <plummer574@gmail.com> * Bump version Signed-off-by: Andrew Plummer <plummer574@gmail.com> * CR: remove docstring line Signed-off-by: Andrew Plummer <plummer574@gmail.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
co-authored by
Cedric Lamoriniere
parent
eceb82f630
commit
7ba8bec233
@@ -1,6 +1,6 @@
|
||||
apiVersion: v1
|
||||
name: datadog
|
||||
version: 1.38.1
|
||||
version: 1.38.2
|
||||
appVersion: 6.14.0
|
||||
description: DataDog Agent
|
||||
keywords:
|
||||
|
||||
@@ -343,6 +343,7 @@ helm install --name <RELEASE_NAME> \
|
||||
| `clusterAgent.image.pullPolicy` | Image pull policy | `IfNotPresent` |
|
||||
| `clusterAgent.image.pullSecrets` | Image pull secrets | `nil` |
|
||||
| `clusterAgent.metricsProvider.enabled` | Enable Datadog metrics as a source for HPA scaling | `false` |
|
||||
| `clusterAgent.metricsProvider.service.type` | The type of service to use for the clusterAgent metrics server | `ClusterIP` |
|
||||
| `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.podAnnotations` | Annotations to add to the Cluster Agent Pod(s) | `nil` |
|
||||
@@ -355,6 +356,7 @@ helm install --name <RELEASE_NAME> \
|
||||
| `clusterAgent.livenessProbe` | Overrides the default liveness probe | http port 443 if external metrics enabled |
|
||||
| `clusterAgent.readinessProbe` | Overrides the default readiness probe | http port 443 if external metrics enabled |
|
||||
| `clusterAgent.strategy` | Which update strategy to deploy the cluster-agent | RollingUpdate with 0 maxUnavailable, 1 maxSurge |
|
||||
| `clusterAgent.useHostNetwork` | If true, use the host's network | `nil` |
|
||||
| `clusterchecksDeployment.enabled` | Enable Datadog agent deployment dedicated for running Cluster Checks. It allows having different resources (Request/Limit) for Cluster Checks agent pods. | `false` |
|
||||
| `clusterchecksDeployment.env` | Additional Datadog environment variables for Cluster Checks Deployment | `nil` |
|
||||
| `clusterchecksDeployment.resources.requests.cpu` | CPU resource requests | `200m` |
|
||||
|
||||
@@ -40,7 +40,7 @@ metadata:
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
|
||||
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||
spec:
|
||||
type: ClusterIP
|
||||
type: {{ .Values.clusterAgent.metricsProvider.service.type }}
|
||||
selector:
|
||||
app: {{ template "datadog.fullname" . }}-cluster-agent
|
||||
ports:
|
||||
|
||||
@@ -57,6 +57,10 @@ spec:
|
||||
{{- if .Values.clusterAgent.image.pullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{ toYaml .Values.clusterAgent.image.pullSecrets | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.clusterAgent.useHostNetwork }}
|
||||
hostNetwork: {{ .Values.clusterAgent.useHostNetwork }}
|
||||
dnsPolicy: ClusterFirstWithHostNet
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: {{ .Values.clusterAgent.containerName }}
|
||||
|
||||
@@ -356,6 +356,14 @@ clusterAgent:
|
||||
metricsProvider:
|
||||
enabled: false
|
||||
|
||||
## Configuration for the service for the cluster-agent metrics server
|
||||
#
|
||||
service:
|
||||
## @param type - string - optional
|
||||
##
|
||||
#
|
||||
type: ClusterIP
|
||||
|
||||
## @param clusterChecks - object - required
|
||||
## Enable the Cluster Checks feature on both the cluster-agents and the daemonset
|
||||
## ref: https://docs.datadoghq.com/agent/autodiscovery/clusterchecks/
|
||||
@@ -424,6 +432,16 @@ clusterAgent:
|
||||
#
|
||||
# readinessProbe:
|
||||
|
||||
## @param useHostNetwork - boolean - optional
|
||||
## Bind ports on the hostNetwork. Useful for CNI networking where hostPort might
|
||||
## not be supported. The ports need to be available on all hosts. It can be
|
||||
## used for custom metrics instead of a service endpoint.
|
||||
##
|
||||
## WARNING: Make sure that hosts using this are properly firewalled otherwise
|
||||
## metrics and traces are accepted from any host able to connect to this host.
|
||||
#
|
||||
# useHostNetwork: true
|
||||
|
||||
rbac:
|
||||
|
||||
## @param created - boolean - required
|
||||
|
||||
Reference in New Issue
Block a user