Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Roy zohar akamai/add extra ports to service #1514

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions charts/datadog/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Datadog changelog

## 3.71.2

* Add values parameter that allows to specify extra ports for the agent service

## 3.71.1

* Update `fips.image.tag` to `1.1.5` updating openSSL version to 3.0.15
Expand Down
2 changes: 1 addition & 1 deletion charts/datadog/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: datadog
version: 3.71.1
version: 3.71.2
appVersion: "7"
description: Datadog Agent
keywords:
Expand Down
3 changes: 2 additions & 1 deletion charts/datadog/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Datadog

![Version: 3.71.1](https://img.shields.io/badge/Version-3.71.1-informational?style=flat-square) ![AppVersion: 7](https://img.shields.io/badge/AppVersion-7-informational?style=flat-square)
![Version: 3.71.2](https://img.shields.io/badge/Version-3.71.2-informational?style=flat-square) ![AppVersion: 7](https://img.shields.io/badge/AppVersion-7-informational?style=flat-square)

[Datadog](https://www.datadoghq.com/) is a hosted infrastructure monitoring platform. This chart adds the Datadog Agent to all nodes in your cluster via a DaemonSet. It also optionally depends on the [kube-state-metrics chart](https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-state-metrics). For more information about monitoring Kubernetes with Datadog, please refer to the [Datadog documentation website](https://docs.datadoghq.com/agent/basic_agent_usage/kubernetes/).

Expand Down Expand Up @@ -782,6 +782,7 @@ helm install <RELEASE_NAME> \
| datadog.otlp.receiver.protocols.http.useHostPort | bool | `true` | Enable the Host Port for the OTLP/HTTP endpoint |
| datadog.podAnnotationsAsTags | object | `{}` | Provide a mapping of Kubernetes Annotations to Datadog Tags |
| datadog.podLabelsAsTags | object | `{}` | Provide a mapping of Kubernetes Labels to Datadog Tags |
| datadog.ports | list | `[]` | Allows to specify extra ports for the agent service |
| datadog.processAgent.containerCollection | bool | `true` | Set this to true to enable container collection # ref: https://docs.datadoghq.com/infrastructure/containers/?tab=helm |
| datadog.processAgent.enabled | bool | `true` | Set this to true to enable live process monitoring agent DEPRECATED. Set `datadog.processAgent.processCollection` or `datadog.processAgent.containerCollection` instead. # Note: /etc/passwd is automatically mounted when `processCollection`, `processDiscovery`, or `containerCollection` is enabled. # ref: https://docs.datadoghq.com/graphing/infrastructure/process/#kubernetes-daemonset |
| datadog.processAgent.processCollection | bool | `false` | Set this to true to enable process collection |
Expand Down
3 changes: 3 additions & 0 deletions charts/datadog/templates/agent-services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ spec:
targetPort: {{ .containerPort }}
name: {{ .name }}
{{- end }}
{{- end }}
{{- if .Values.datadog.ports }}
{{ toYaml .Values.datadog.ports | indent 4 }}
{{- end }}
internalTrafficPolicy: Local
{{ end }}
2 changes: 2 additions & 0 deletions charts/datadog/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -958,6 +958,8 @@ datadog:
# datadog.containerLifecycle.enabled -- Enable container lifecycle events collection
enabled: true

# datadog.ports -- Allows to specify extra ports for the agent service
ports: []
## This is the Datadog Cluster Agent implementation that handles cluster-wide
## metrics more cleanly, separates concerns for better rbac, and implements
## the external metrics API so you can autoscale HPAs based on datadog metrics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: datadog-clusterchecks
namespace: datadog-agent
labels:
helm.sh/chart: 'datadog-3.69.3'
helm.sh/chart: 'datadog-3.71.2'
app.kubernetes.io/name: "datadog"
app.kubernetes.io/instance: "datadog"
app.kubernetes.io/managed-by: Helm
Expand Down Expand Up @@ -36,16 +36,16 @@ spec:

name: datadog-clusterchecks
annotations:
checksum/clusteragent_token: 898b7de0d59fe1803c9e99f2010332dae52edfc36ef050f7f77c7ab12b8709c5
checksum/install_info: 88c52cd7ef5158f4eb2738b4c3b575985b7d139c6b2a25213c46c5a6266e22e7
checksum/clusteragent_token: cb00d12e8888a85c05a41959d334bd256789f1035d047e3f3f44fc9b08ac287a
checksum/install_info: dbded203b88fbfce5117c4a4e59bb97d9c14841b40cf2c20f91ca1df09170114
spec:
serviceAccountName: datadog-cluster-checks
automountServiceAccountToken: true
imagePullSecrets:
[]
initContainers:
- name: init-volume
image: "gcr.io/datadoghq/agent:7.55.2"
image: "gcr.io/datadoghq/agent:7.56.2"
imagePullPolicy: IfNotPresent
command: ["bash", "-c"]
args:
Expand All @@ -57,7 +57,7 @@ spec:
resources:
{}
- name: init-config
image: "gcr.io/datadoghq/agent:7.55.2"
image: "gcr.io/datadoghq/agent:7.56.2"
imagePullPolicy: IfNotPresent
command: ["bash", "-c"]
args:
Expand All @@ -70,7 +70,7 @@ spec:
{}
containers:
- name: agent
image: "gcr.io/datadoghq/agent:7.55.2"
image: "gcr.io/datadoghq/agent:7.56.2"
command: ["bash", "-c"]
args:
- rm -rf /etc/datadog-agent/conf.d && touch /etc/datadog-agent/datadog.yaml && exec agent run
Expand Down
14 changes: 7 additions & 7 deletions test/datadog/baseline/cluster-agent-deployment_default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: datadog-cluster-agent
namespace: datadog-agent
labels:
helm.sh/chart: 'datadog-3.69.3'
helm.sh/chart: 'datadog-3.71.2'
app.kubernetes.io/name: "datadog"
app.kubernetes.io/instance: "datadog"
app.kubernetes.io/managed-by: Helm
Expand Down Expand Up @@ -36,17 +36,17 @@ spec:

name: datadog-cluster-agent
annotations:
checksum/clusteragent_token: 1e89899244fb44ae50129b361b512027fd59eeec723dc4e43ec8c54084de2f92
checksum/clusteragent-configmap: fa5c139d4a60573ab9b4ecd4827360c3718bde0bcaaf5c9f1eae8ae24ff48edf
checksum/api_key: 43fd540dba2ec5835bddb0920a960e152d63d0dc44c95cdb376dfd5c8c39bdd4
checksum/clusteragent_token: 65daf693407222835418575e3dc0cf28fd5f0872a320158b8332c0358f03d75e
checksum/clusteragent-configmap: 2987fdd6e1bc009cfd5870337b7ec542121dc96715f75066a40d238aba25a69d
checksum/api_key: 9a6001c7c85283cde9986c9f93c6150b9342cf1fc423f072af56911205f9f02e
checksum/application_key: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
checksum/install_info: 88c52cd7ef5158f4eb2738b4c3b575985b7d139c6b2a25213c46c5a6266e22e7
checksum/install_info: dbded203b88fbfce5117c4a4e59bb97d9c14841b40cf2c20f91ca1df09170114
spec:
serviceAccountName: datadog-cluster-agent
automountServiceAccountToken: true
initContainers:
- name: init-volume
image: "gcr.io/datadoghq/cluster-agent:7.55.2"
image: "gcr.io/datadoghq/cluster-agent:7.56.2"
imagePullPolicy: IfNotPresent
command:
- cp
Expand All @@ -59,7 +59,7 @@ spec:
mountPath: /opt/datadog-agent
containers:
- name: cluster-agent
image: "gcr.io/datadoghq/cluster-agent:7.55.2"
image: "gcr.io/datadoghq/cluster-agent:7.56.2"
imagePullPolicy: IfNotPresent
resources:
{}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: datadog-cluster-agent
namespace: datadog-agent
labels:
helm.sh/chart: 'datadog-3.69.3'
helm.sh/chart: 'datadog-3.71.2'
app.kubernetes.io/name: "datadog"
app.kubernetes.io/instance: "datadog"
app.kubernetes.io/managed-by: Helm
Expand Down Expand Up @@ -36,17 +36,17 @@ spec:

name: datadog-cluster-agent
annotations:
checksum/clusteragent_token: 7991408bb52fa0f7419e6e11edf9a98b11a769fe9fd4574652c99d896a836f3a
checksum/clusteragent-configmap: fa5c139d4a60573ab9b4ecd4827360c3718bde0bcaaf5c9f1eae8ae24ff48edf
checksum/api_key: 43fd540dba2ec5835bddb0920a960e152d63d0dc44c95cdb376dfd5c8c39bdd4
checksum/clusteragent_token: 41d0e0ef2539a2a3418786b09e13319f187b9ac2850c428c2d1de8b55b8976f4
checksum/clusteragent-configmap: 2987fdd6e1bc009cfd5870337b7ec542121dc96715f75066a40d238aba25a69d
checksum/api_key: 9a6001c7c85283cde9986c9f93c6150b9342cf1fc423f072af56911205f9f02e
checksum/application_key: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
checksum/install_info: 88c52cd7ef5158f4eb2738b4c3b575985b7d139c6b2a25213c46c5a6266e22e7
checksum/install_info: dbded203b88fbfce5117c4a4e59bb97d9c14841b40cf2c20f91ca1df09170114
spec:
serviceAccountName: datadog-cluster-agent
automountServiceAccountToken: true
initContainers:
- name: init-volume
image: "gcr.io/datadoghq/cluster-agent:7.55.2"
image: "gcr.io/datadoghq/cluster-agent:7.56.2"
imagePullPolicy: IfNotPresent
command:
- cp
Expand All @@ -59,7 +59,7 @@ spec:
mountPath: /opt/datadog-agent
containers:
- name: cluster-agent
image: "gcr.io/datadoghq/cluster-agent:7.55.2"
image: "gcr.io/datadoghq/cluster-agent:7.56.2"
imagePullPolicy: IfNotPresent
resources:
{}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: datadog-cluster-agent
namespace: datadog-agent
labels:
helm.sh/chart: 'datadog-3.69.3'
helm.sh/chart: 'datadog-3.71.2'
app.kubernetes.io/name: "datadog"
app.kubernetes.io/instance: "datadog"
app.kubernetes.io/managed-by: Helm
Expand Down Expand Up @@ -36,17 +36,17 @@ spec:

name: datadog-cluster-agent
annotations:
checksum/clusteragent_token: 1c7f1ed04182e5250ad3cdd92f5e0549d68b792b85514efd1343d473b4b0ed31
checksum/clusteragent-configmap: fa5c139d4a60573ab9b4ecd4827360c3718bde0bcaaf5c9f1eae8ae24ff48edf
checksum/api_key: 43fd540dba2ec5835bddb0920a960e152d63d0dc44c95cdb376dfd5c8c39bdd4
checksum/clusteragent_token: 27a5ef108408ef85a5eb4f19560179c86af2c6300c2e57ea4972c66181b7de4f
checksum/clusteragent-configmap: 2987fdd6e1bc009cfd5870337b7ec542121dc96715f75066a40d238aba25a69d
checksum/api_key: 9a6001c7c85283cde9986c9f93c6150b9342cf1fc423f072af56911205f9f02e
checksum/application_key: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
checksum/install_info: 88c52cd7ef5158f4eb2738b4c3b575985b7d139c6b2a25213c46c5a6266e22e7
checksum/install_info: dbded203b88fbfce5117c4a4e59bb97d9c14841b40cf2c20f91ca1df09170114
spec:
serviceAccountName: datadog-cluster-agent
automountServiceAccountToken: true
initContainers:
- name: init-volume
image: "gcr.io/datadoghq/cluster-agent:7.55.2"
image: "gcr.io/datadoghq/cluster-agent:7.56.2"
imagePullPolicy: IfNotPresent
command:
- cp
Expand All @@ -59,7 +59,7 @@ spec:
mountPath: /opt/datadog-agent
containers:
- name: cluster-agent
image: "gcr.io/datadoghq/cluster-agent:7.55.2"
image: "gcr.io/datadoghq/cluster-agent:7.56.2"
imagePullPolicy: IfNotPresent
resources:
{}
Expand Down Expand Up @@ -119,7 +119,7 @@ spec:
- name: DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_IMAGE_NAME
value: agent
- name: DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_IMAGE_TAG
value: 7.55.2
value: 7.56.2
- name: DD_REMOTE_CONFIGURATION_ENABLED
value: "false"
- name: DD_CLUSTER_CHECKS_ENABLED
Expand Down
16 changes: 8 additions & 8 deletions test/datadog/baseline/daemonset_default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: datadog
namespace: datadog-agent
labels:
helm.sh/chart: 'datadog-3.69.3'
helm.sh/chart: 'datadog-3.71.2'
app.kubernetes.io/name: "datadog"
app.kubernetes.io/instance: "datadog"
app.kubernetes.io/managed-by: Helm
Expand All @@ -30,8 +30,8 @@ spec:

name: datadog
annotations:
checksum/clusteragent_token: de542da9e3ea422b2ed413961187c1fe5bd28d1608c78a8bb16a4bc64b508e9b
checksum/install_info: 88c52cd7ef5158f4eb2738b4c3b575985b7d139c6b2a25213c46c5a6266e22e7
checksum/clusteragent_token: d6a3359db69578c0e6f62606525ce12a83e22c6ac75d5eedf02d70e2fa963af5
checksum/install_info: dbded203b88fbfce5117c4a4e59bb97d9c14841b40cf2c20f91ca1df09170114
checksum/autoconf-config: 74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b
checksum/confd-config: 44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
checksum/checksd-config: 44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
Expand All @@ -42,7 +42,7 @@ spec:
hostPID: true
containers:
- name: agent
image: "gcr.io/datadoghq/agent:7.55.2"
image: "gcr.io/datadoghq/agent:7.56.2"
imagePullPolicy: IfNotPresent
command: ["agent", "run"]

Expand Down Expand Up @@ -202,7 +202,7 @@ spec:
successThreshold: 1
timeoutSeconds: 5
- name: trace-agent
image: "gcr.io/datadoghq/agent:7.55.2"
image: "gcr.io/datadoghq/agent:7.56.2"
imagePullPolicy: IfNotPresent
command: ["trace-agent", "-config=/etc/datadog-agent/datadog.yaml"]
resources:
Expand Down Expand Up @@ -308,7 +308,7 @@ spec:
port: 8126
timeoutSeconds: 5
- name: process-agent
image: "gcr.io/datadoghq/agent:7.55.2"
image: "gcr.io/datadoghq/agent:7.56.2"
imagePullPolicy: IfNotPresent
command: ["process-agent", "--cfgpath=/etc/datadog-agent/datadog.yaml"]
resources:
Expand Down Expand Up @@ -405,7 +405,7 @@ spec:

- name: init-volume

image: "gcr.io/datadoghq/agent:7.55.2"
image: "gcr.io/datadoghq/agent:7.56.2"
imagePullPolicy: IfNotPresent
command: ["bash", "-c"]
args:
Expand All @@ -418,7 +418,7 @@ spec:
{}
- name: init-config

image: "gcr.io/datadoghq/agent:7.55.2"
image: "gcr.io/datadoghq/agent:7.56.2"
imagePullPolicy: IfNotPresent
command:
- bash
Expand Down
Loading