108 Commits
Author SHA1 Message Date
Vincent Boulineau 67e3d9f574 Deprecate stable/datadog (#23384)
Signed-off-by: Vincent Boulineau <vincent.boulineau@datadoghq.com>
2020-08-05 10:34:29 -07:00
Vincent Boulineau d6da827531 [stable/datadog] Fix metricsProvider port with Kubernetes <= 1.14 (#23358)
Signed-off-by: Vincent Boulineau <vincent.boulineau@datadoghq.com>
2020-07-27 14:19:07 -07:00
Xavier Lucas 4d69d73c2e [stable/datadog] Update README (#23334)
* Correct default values

Signed-off-by: Xavier Lucas <xavier.lucas@datadoghq.com>

* Bump version

Signed-off-by: Xavier Lucas <xavier.lucas@datadoghq.com>
2020-07-27 05:16:19 -07:00
Lénaïc HuardandSychevIgor 09afc28910 [stable/datadog] Add support of DD_CONTAINER_{INCLUDE,EXCLUDE}_{METRICS,LOGS} (#23336)
* Update README.md

2 properties marked as deprecated here https://docs.datadoghq.com/agent/docker/?tab=standard

Signed-off-by: Igor_Sychev <Igor_Sychev@epam.com>

* [stable/datadog] Add support of DD\_CONTAINER\_{INCLUDE,EXCLUDE}\_{METRICS,LOGS}

Signed-off-by: Lénaïc Huard <lenaic.huard@datadoghq.com>

Co-authored-by: SychevIgor <SychevIgor@users.noreply.github.com>
2020-07-24 09:28:23 -07:00
Cedric Lamoriniere ae5f7d19e7 [stable/datadog] Add podSecurity.securityContext (#23233)
Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>
2020-07-17 03:37:01 -07:00
Julio Greff b47163db0c [stable/datadog] Small chart tweaks for cluster agent (#23079)
* [stable/datadog] Default external metrics provider port to 8443

In order to avoid issues with non-root users inside a container trying
to listen on port 443, from now on we're going to set the default port
for the external metrics provider in the DCA container to 8443.

Signed-off-by: Julio Greff <julio.greff@datadoghq.com>

* [stable/datadog] Document `clusterAgent.env`

Signed-off-by: Julio Greff <julio.greff@datadoghq.com>

* [stable/datadog] Bump version to 2.3.29

Signed-off-by: Julio Greff <julio.greff@datadoghq.com>
2020-07-10 03:09:48 -07:00
Haïssam Kaj 5eacc193ec [stable/datadog] add orchestrator-explorer option (#23018)
* add setting to enable the orchestrator explorer

Signed-off-by: Haissam Kaj <haissam@datadoghq.com>

* switch default to false

Signed-off-by: Haissam Kaj <haissam@datadoghq.com>
2020-07-06 04:54:51 -07:00
Cedric Lamoriniere f715786d2f [stable/datadog] Add PSP and SCC (#22529)
* [stable/datadog] Add PSP and SCC

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* update after review

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>
2020-07-06 02:32:53 -07:00
2c62cc6964 [stable/datadog] Merge several pending PRs (#23066)
* Remove duplicate imagePullSecrets

Signed-off-by: Brian Choy <bycEEE@gmail.com>

* [stable/datadog] Fix a bunch of nil defaults

Signed-off-by: George Christou <gechrr@gmail.com>

* [stable/datadog] Adding explanation for metricsProvider.enabled

Signed-off-by: Lénaïc Huard <lenaic.huard@datadoghq.com>

* [stable/datadog] Fix DataDog location to useConfigMap in docs

Signed-off-by: Lénaïc Huard <lenaic.huard@datadoghq.com>

Co-authored-by: Brian Choy <bycEEE@gmail.com>
Co-authored-by: George Christou <gechrr@gmail.com>
Co-authored-by: Sagar2366 <sagarutekar2366@gmail.com>
Co-authored-by: Gregory Jones <grjones@rapid7.com>
2020-07-03 08:22:47 -07:00
d1efe909ac [stable/datadog] Typo and grammar fixes in documentation (#22944)
* grammar edits!

Signed-off-by: Lénaïc Huard <lenaic.huard@datadoghq.com>

* Typo in log config

Signed-off-by: Lénaïc Huard <lenaic.huard@datadoghq.com>

Co-authored-by: cswatt <cecilia.watt@datadoghq.com>
Co-authored-by: John Girvan <3327314+jrgirvan@users.noreply.github.com>
2020-06-25 01:58:38 -07:00
ento df411feb22 [stable/datadog] Volume mounts and ServiceAccount annotations for Cluster Checks runners (#22659)
* [stable/datadog] Add params for mounting volumes to cluster checks runners

Signed-off-by: Marica Odagaki <marica@noredink.com>

* [stable/datadog] Add param for annotating ServiceAccount for cluster checks runners

Signed-off-by: Marica Odagaki <marica@noredink.com>

* [stable/datadog] Bump to 2.3.9

Signed-off-by: Marica Odagaki <marica@noredink.com>
2020-06-25 01:20:37 -07:00
Lénaïc Huard 8655b15921 [stable/datadog] Mount kernel headers in system-probe container (#22686)
The goal is to implement runtime-compiled eBPF probes in system-probe
and collect the data to convert them in DataDog metrics in the agent.

Signed-off-by: Lénaïc Huard <lenaic.huard@datadoghq.com>
2020-06-24 11:04:37 -07:00
Stanislav Petrashov c2164018be [stable/datadog] Allow overriding cluster-agent command (#22913)
Signed-off-by: Stanislav Petrashov <stanislav.petrashov@n26.com>
2020-06-23 13:19:19 -07:00
Lénaïc Huard 77eb3fc924 [stable/datadog] Use dedicated endpoints for liveness and readiness probes (#21942)
Signed-off-by: Lénaïc Huard <lenaic.huard@datadoghq.com>
2020-06-23 06:07:41 -07:00
Vincent Boulineau ba15fcdbe1 Align CLC configuration with other agent - fix endpoint checks (#22874)
Signed-off-by: Vincent Boulineau <vincent.boulineau@datadoghq.com>
2020-06-23 00:49:40 -07:00
orong-pp a4e2bf8bdd [stable/datadog] introduce dnsConfig helm values for the different co… (#22727)
* [stable/datadog] introduce dnsConfig values for the different containers

Signed-off-by: Oron Gola <oron.gola@perception-point.io>

* [stable/datadog] add dnsConfig default values to values.yaml

Signed-off-by: Oron Gola <oron.gola@perception-point.io>

* [stable/datadog] dnsConfig fix documentation and suggested default value

Signed-off-by: Oron Gola <oron.gola@perception-point.io>
2020-06-15 07:25:59 -07:00
Matheus Weber da Conceição 333eefddc9 [stable/datadog] Add clusterAgent.podLabels variable to add labels to the Cluster Agent Pod(s) (#22715)
Signed-off-by: Matheus Weber da Conceição <matheuswcon@gmail.com>
2020-06-09 01:47:18 -07:00
AkiraFukushima 459bd1f72e [stable/datadog] Add affinity to cluster agent deployment (#22562)
* [stable/datadog] Add affinity to cluster agent deployment

Signed-off-by: AkiraFukushima <h3.poteto@gmail.com>

* [stable/datadog] Update CHANGELOG for 2.3.6

Signed-off-by: AkiraFukushima <h3.poteto@gmail.com>
2020-05-28 04:44:02 -07:00
Cedric Lamoriniere 0da34dafa5 [stable/datadog] ADD UDS socket for trace agent (#22463)
* Add `DD_AC_INCLUDE` and `DD_AC_EXCLUDE` to all containers
* Add "Unix Domain Socket" support in trace-agent
* Add new parameter to specify the dogstatsd socket path on the host
* Fix typos in values.yaml
* Update "tags:" example in values.yaml
* Add rate_limit_queries_ metrics

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>
2020-05-26 02:05:11 -07:00
Lénaïc Huard de0939a800 [stable/datadog] Make the datadog agent resilient to docker daemon restarts (#21300)
* [stable/datadog] Honor image pull policy setting in init containers

Signed-off-by: Lénaïc Huard <lenaic.huard@datadoghq.com>

* [stable/datadog] Pass DD_CRI_SOCKET_PATH to the init container

Signed-off-by: Lénaïc Huard <lenaic.huard@datadoghq.com>

* [stable/datadog] Bump version and fill changelog

Signed-off-by: Lénaïc Huard <lenaic.huard@datadoghq.com>

* [stable/datadog] Revert "[stable/datadog] Revert "Mount the directory containing the CRI socket instead of the socket itself" (#21268)"

This reverts commit 6de689e7e4.

Signed-off-by: Lénaïc Huard <lenaic.huard@datadoghq.com>

* [stable/datadog] Explicitly set DOCKER_HOST

Signed-off-by: Lénaïc Huard <lenaic.huard@datadoghq.com>

* [stable/datadog] Bump version and fill changelog

Signed-off-by: Lénaïc Huard <lenaic.huard@datadoghq.com>

* [stable/datalog] Do not enable the `cri` check when running on a `docker` setup

Signed-off-by: Lénaïc Huard <lenaic.huard@datadoghq.com>

* [stable/datadog] Add a check for the version of the image

Signed-off-by: Lénaïc Huard <lenaic.huard@datadoghq.com>

* fixup! [stable/datadog] Add a check for the version of the image

Signed-off-by: Lénaïc Huard <lenaic.huard@datadoghq.com>

* [stable/datadog] Bump the version to highlight the non-backward compatible change

Signed-off-by: Lénaïc Huard <lenaic.huard@datadoghq.com>

* [stable/datadog] Do not touch the docker named pipe for Windows

Signed-off-by: Lénaïc Huard <lenaic.huard@datadoghq.com>

* [stable/datadog] Add an `agents.image.tag.doNotCheckTag` parameter

to skip the compatibility check with the docker image version.

Signed-off-by: Lénaïc Huard <lenaic.huard@datadoghq.com>

* [stable/datadog] Do not use by default a “floating” tag

Signed-off-by: Lénaïc Huard <lenaic.huard@datadoghq.com>

* [stable/datadog] Document the `agents.image.doNotCheckTag` parameter

Signed-off-by: Lénaïc Huard <lenaic.huard@datadoghq.com>
2020-05-07 03:15:09 -07:00
Cedric Lamoriniere dea2dc81d4 [stable/datadog] KSM update and add doc for secret creation (#22244)
* [stable/datadog] ksm + doc update

* Add documentations around secret management in the datadog helm chart. It is to upstream
  requested changes in the IBM charts repository: https://github.com/IBM/charts/pull/690#discussion_r411702458
* update `kube-state-metrics` dependency
* uncomment every values.yaml parameter for IBM chart compliancy

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* [stable/datadog] update KSM dependency

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* [stable/datadog] update KSM dependency

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>
2020-05-05 02:43:08 -07:00
Cedric Lamoriniere 20a26fc4ea [stable/datadog] volumemount conflict fix and docs (#22188)
* Fixing variables description in README and Migration documentation (#22031)
* Avoid volumes mount conflict between `system-probe` and `logs` volumes in the `agent`.

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>
2020-04-29 10:52:25 -07:00
Cedric Lamoriniere 54704dde75 [stable/datadog] fix several reported issues (#22006)
* Move several EnvVars to `common-env-vars` to be accessible by the `trace-agent` #21991.
* Fix discrepancies migration-guide and readme reporded in #21806 and #21920.
* Fix EnvVars with integer value due to yaml. serialization, reported by #21853.
* Fix .Values.datadog.tags encoding, reported by #21663.
* Add Checksum to `xxx-cluster-agent-config` config map, reported by #21622 and contribution #21656.

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>
2020-04-20 02:37:38 -07:00
Pierre Guceski 6abb968d48 updating useConfigMap & customAgentConfig param desc (#21851)
Signed-off-by: l0k0ms <pierre.guceski@datadoghq.com>
2020-04-09 08:31:44 -07:00
Vincent Boulineau f6efe1fa7d [stable/datadog] Add Windows support and minor fixes (#21550)
Signed-off-by: Vincent Boulineau <vincent.boulineau@datadoghq.com>
2020-04-06 05:55:47 -07:00
Ivan Ilichev a9c0951a1e [stable/datadog] Change default for processAgent.enabled to true (#21602)
* [stable/datadog] Change default value for processAgent.enabled to true to

Signed-off-by: Ivan Ilichev <ivan.ilichev@datadoghq.com>

* Update chart version and add changelog note

Signed-off-by: Ivan Ilichev <ivan.ilichev@datadoghq.com>
2020-03-26 13:44:23 -07:00
Lénaïc Huard b181353161 [stable/datalog] Do not enable the cri check when running on a docker setup (#21476)
Signed-off-by: Lénaïc Huard <lenaic.huard@datadoghq.com>
2020-03-17 12:53:27 -07:00
Peter Rifel 84f684d6a5 [stable/datadog] Add PodDisruptionBudget to Cluster Agent and Cluster Check Runners (#21433)
Signed-off-by: Peter Rifel <pgrifel@gmail.com>
2020-03-16 08:32:42 -07:00
Ivan Ilichev 9d8fbe50f1 [stable/datadog] Introduce processAgent.processCollection (#21420)
* [stable/datadog] Introduce processAgent.processCollection to correctly configure DD_PROCESS_AGENT_ENABLED

Signed-off-by: Ivan Ilichev <ivan.ilichev@datadoghq.com>

* Change the default for processCollection to false in accordance with process agent settings

Signed-off-by: Ivan Ilichev <ivan.ilichev@datadoghq.com>

* Update chart version

Signed-off-by: Ivan Ilichev <ivan.ilichev@datadoghq.com>
2020-03-12 07:02:37 -07:00
Cedric LamoriniereandVincent Boulineau 1388bd5663 [stable/datadog][v2.0.1] improve logs fields (#21086)
Co-Authored-By: Vincent Boulineau <58430298+vboulineau@users.noreply.github.com>
Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

Co-authored-by: Vincent Boulineau <58430298+vboulineau@users.noreply.github.com>
2020-02-27 11:15:28 -08:00
6d2fc82c22 [stable/datadog] v2.0.0 major release (#18182)
* [stable/datadog] v2.0.0 cleaning and refactoring

* Remove Datadog agent deployment configuration.
* Cleanup resources labels, to fit with recommended labels.
* Cleanup useless or unused values parameters.

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* [stable/datadog] cleanup refactor RBAC resources

* each component have its own RBAC configuration (create,configuration).
* container runtime socket update values configuration simplification.
* `nameOverride` `fullnameOverride` is now optional in values.yaml

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* update stable/datadog/ci values.yaml

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* [datadog] fix linter error

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* [datadog] fix missing merge

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* refactor values.yaml

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* update value.yaml

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* Add a table with the correspondence between the v1 and v2 parameters

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* templates: enable APM by default

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* Leave apm.enabled setting but change default.

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* DD_APM_NON_LOCAL_TRAFFIC=true when apm.enabled is true

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* Enable hostPort binding 8126 by default when apm.enabled is true.

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* values: make apm.enabled default to false

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* Address PR comments.

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* refactor dogstatsd parameters

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* update after comments

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* fix dogstatsd parameters path

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* update system-probe manifest after review

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* update ci configuration and fix cluster-agent config

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* change cluster-agent probes endpoint

change the cluster-agent probes endpoint in order to be resilent if
never the datadog api is not reachable.

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* Fix several typo thanks to contributions

Include: #20460 #20449

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* adding new approvers/reviewers

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* [stable/datadog] add resoures field for init-containers

Fixe: #20035
Include: #20461

Add the possibility to overwrite the resources associated to the
init-containers.

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* update after review

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* return error message if apiKey is not provided

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* Mount the directory containing the CRI socket instead of the socket itself (#5)

This is to handle the cases where the docker daemon is restarted.
In this case, the docker daemon will recreate its docker socket and,
if the container bind-mounted directly the socket, the container would
still have access to the old socket instead of the one of the new docker
daemon.

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

Co-authored-by: Lénaïc Huard <L3n41c@users.noreply.github.com>
Co-authored-by: Gabriel Aszalos <gabriel.aszalos@datadoghq.com>
2020-02-26 07:26:25 -08:00
Ofek Lev aa8d3e94c1 Fix typo (#20066)
Signed-off-by: Ofek Lev <ofekmeister@gmail.com>
2020-02-06 02:57:33 -08:00
Ivan IlichevandCedric Lamoriniere 9292d70bda [stable/datadog] Make metricsProvider service port configurable (#20279)
* [stable/datadog] Make metricsProvider service port configurable via values

Signed-off-by: Ivan Ilichev <ivan.ilichev@datadoghq.com>

* Update stable/datadog/ci/cluster-agent-metrics-server-service-port-values.yaml

Co-Authored-By: Cedric Lamoriniere <cedric.lamoriniere@datadoghq.com>
Signed-off-by: Ivan Ilichev <ivan.ilichev@datadoghq.com>

* Fix lint error - too many blank lines

Signed-off-by: Ivan Ilichev <ivan.ilichev@datadoghq.com>

* Fix liveness and readiness probe

Signed-off-by: Ivan Ilichev <ivan.ilichev@datadoghq.com>

Co-authored-by: Cedric Lamoriniere <cedric.lamoriniere@datadoghq.com>
2020-01-22 09:06:37 -08:00
Xavier Lucas d1a20aa610 Explicitly pin to agent 7 (#19700)
* Explicitly pin to agent 7

Signed-off-by: Xavier Lucas <xavier.lucas@datadoghq.com>

* Update chart version

Signed-off-by: Xavier Lucas <xavier.lucas@datadoghq.com>
2019-12-20 00:27:32 -08:00
Ivan Ilichev 7103e65f00 [stable/datadog] Allow providing volumes and mounts in the cluster agent deployment (#19679)
* Allow providing volumes and mounts in the cluster agent deployment

Signed-off-by: Ivan Ilichev <ivan.ilichev@datadoghq.com>

* Document volumes and volumeMounts for cluster agent in README

Signed-off-by: Ivan Ilichev <ivan.ilichev@datadoghq.com>

* Add a test for the volumes and volumeMounts

Signed-off-by: Ivan Ilichev <ivan.ilichev@datadoghq.com>

* Bump chart version

Signed-off-by: Ivan Ilichev <ivan.ilichev@datadoghq.com>

* Fix file ending

Signed-off-by: Ivan Ilichev <ivan.ilichev@datadoghq.com>

* Rename the ci test and change to use a hostPath volume

Signed-off-by: Ivan Ilichev <ivan.ilichev@datadoghq.com>
2019-12-19 08:03:57 -08:00
John Pekcan 9934b8ff41 [stable/datadog] allow dogstatsd port to be variable (#18966)
* [stable/datadog] allow dogstatsd port to be variable

Signed-off-by: John Pekcan <johnpekcan@gmail.com>

* need to uncomment customAgentConfig

Signed-off-by: John Pekcan <johnpekcan@gmail.com>

* leave dogstatsd port empty in values.yaml

Signed-off-by: John Pekcan <johnpekcan@gmail.com>

* spacing for comments

Signed-off-by: John Pekcan <johnpekcan@gmail.com>

* need to leave dogstatsd_port uncommented

Signed-off-by: John Pekcan <johnpekcan@gmail.com>

* taking feedback, moving var around

Signed-off-by: John Pekcan <johnpekcan@gmail.com>

* fixing camelCase, and adding env var for statsd

Signed-off-by: John Pekcan <johnpekcan@gmail.com>

* bumping version with sign off

Signed-off-by: John Pekcan <johnpekcan@gmail.com>

* relocating the param in readme

Signed-off-by: John Pekcan <johnpekcan@gmail.com>
2019-12-18 09:05:57 -08:00
Lénaïc Huard b14d8fc983 [stable/datadog] Make the seccomp profile for system-probe optional (#19533)
* [stable/datadog] Remove the seccomp profile for system-probe

The `system-probe` container currently has a specific seccomp profile.
This seccomp profile currently misses some syscalls that are necessary to
exec inside the container.

Concretely, attempting to exec inside the container produces this error:

```
$ kubectl exec -ti datadog-fswnc -c system-probe /bin/bash
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted
bash: initialize_job_control: getpgrp failed: Operation not permitted
command terminated with exit code 1
```

If we add `setpgrp` to the seccomp profile, we get:

```
$ kubectl exec -ti datadog-kbg97 -c system-probe /bin/bash
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted
I have no name!@datadog-kbg97:.$ exit
```

If we add `getcwd`, we get:

```
$ kubectl exec -ti datadog-7b7lf -c system-probe /bin/bash
I have no name!@datadog-7b7lf:/$ exit
```

If we add `geteuid` and `geteuid32`, we get:

```
$ kubectl exec -ti datadog-c42rb -c system-probe /bin/bash
/bin/bash: cannot set uid to -1: effective uid 0: Invalid argument
/bin/bash: cannot set gid to -1: effective gid -1: Invalid argument
bash-5.0$ exit
```

If we get `getgid` and `getgid32`, we get:

```
$ kubectl exec -ti datadog-tp4qd -c system-probe /bin/bash
/bin/bash: cannot set uid to -1: effective uid 0: Invalid argument
bash-5.0$ exit
```

etc.

If we compare the seccomp profile of `system-probe` with the
[default one](https://github.com/moby/moby/blob/4b0371fb36a958589319ab7c501ff4bc22645cfa/profiles/seccomp/default.json),
we see that a lot of syscalls that are missing are innocuous (`getcwd`) or might become useful one day (`inotify` family)
Some syscalls are added on purpose for the `system-probe` container like `bpf` or `perf_event_open` ones.
But those syscalls are part of the [default seccomp profile for containers that have the `SYS_ADMIN` capability](https://github.com/moby/moby/blob/4b0371fb36a958589319ab7c501ff4bc22645cfa/profiles/seccomp/default.json#L567-L594),
and the [`system-probe` container do have the `SYS_ADMIN` capability](https://github.com/helm/charts/blob/3907cebc7042f452506a7471f912d6d0c8380e51/stable/datadog/templates/container-system-probe.yaml#L7).

So, the `system-probe` specific seccomp profile is not necessary to have the `system-probe` container able to load eBPF programs.

Its removal has been tested on GKE, both with Ubuntu and with Container-Optimized OS
and both with docker and containerd.

Signed-off-by: Lénaïc Huard <lenaic.huard@datadoghq.com>

* Make the ad-hoc seccomp profile for system-probe an option

which is enabled by default to stick with the current behavior.

Signed-off-by: Lénaïc Huard <lenaic.huard@datadoghq.com>

* [stable/datadog] Allow use of any arbitrary seccomp profile

…for system-probe.
By default, it will create an ad-hoc one.

Signed-off-by: Lénaïc Huard <lenaic.huard@datadoghq.com>

* [stable/datadog] Add a CI test for seccomp profile override

Signed-off-by: Lénaïc Huard <lenaic.huard@datadoghq.com>
2019-12-13 07:34:55 -08:00
Ivan Sukhomlyn ada60df1bd [stable/datadog] Add nodeSelector for Cluster Agent Deployment (#19430)
Signed-off-by: Ivan Sukhomlyn <ivan.sukhomlyn@ring.com>
2019-12-13 06:02:54 -08:00
Doug WinterandCedric Lamoriniere 7ba8bec233 [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>
2019-10-31 06:47:36 -07:00
Martin Gaida 685f43751e [stable/datadog] Allow custom agent configuration (#15861)
* datadog agent: allow custom configuration

Signed-off-by: Martin Gaida <mgaida@flipboard.com>
Signed-off-by: Martin Gaida <martin.m.gaida@gmail.com>

* datadog agent: configuration documentation

Signed-off-by: Martin Gaida <mgaida@flipboard.com>
Signed-off-by: Martin Gaida <martin.m.gaida@gmail.com>

* stable/datadog: bump version again

Signed-off-by: Martin Gaida <martin.m.gaida@gmail.com>

* stable/datadog: bump version

Signed-off-by: Martin Gaida <martin.m.gaida@gmail.com>
2019-10-08 13:19:49 -07:00
Stefan Sedich aa14832606 [stable/datadog] When using nonLocalTraffic=true also set DD_APM_NON_LOCAL_TRAFFIC (#17080)
Signed-off-by: Stefan Sedich <stefan.sedich@gmail.com>
2019-10-07 13:11:11 -07:00
Cedric Lamoriniere 47762ae799 [stable/datadog] Add labels + deprecation notice (#17455)
* [stable/datadog] Add labels recommended by Helm

See https://helm.sh/docs/chart_best_practices/#standard-labels

New labels are added, no existing labels are removed nor any label selectors updated.

Signed-off-by: Peter Rifel <pgrifel@gmail.com>

* [stable/datadog] Add additional deprecation notes.

* update recommended labels for improving the migration strategy.
* prepare the deployment agent configuration deprecation

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* [stable/datadog] add ci values.yaml files

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* add missing labels on system-probe resources

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* update NOTES.txt

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>
2019-10-01 07:13:34 -07:00
shangwang 4539e30e62 [stable/datadog]add system-probe agent to datadog chart (#17376)
* [stable/datadog] add system-probe container to datadog-agent daemonset

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* [stable/datadog] some fixes

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* remove system-probe configmap

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* bring back the sysprobe config map

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* indentation

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* fix env var name

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* updated configs in values.yaml for more information

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* update how system-probe is run

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* bump chart version

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* bump chart again

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* hard code unix socket location

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* remove resource definition for init container

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* add labels

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* fix value syntax and move system-probe values to the same level with
datadog

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* remove unused setup

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* update README file

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* fix chart and update README

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* update system-probe container to work with dedicated container case

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* bump chart version

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* bump chart version

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* remove resources config for systemProbe

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* fix process-agent resource indent

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* use the same format for volumes

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* update README

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* allow empty initContainers section

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* bump chart with minor version

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* make seccomp root directory be configurable via values

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* Update README for processAgentEanbled 3 states

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* update daemonset and README to make sure system-probe is only enabled if
both daemonset.useDedicatedContainers and systemProbe.enabled are true

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* update README to reflect the fact that system-probe needs flag
useDedicatedContainers

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* rename system-probe template

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* don't show empty initContainers when not using dedicated containers

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* make bpfDebug flag required and default be false

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* reduce seccomp profile

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* refine seccomp

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* Revert "refine seccomp"

This reverts commit a4cc7e667cd2118a2b8bd1b07444a3f93bb539c8.

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* Revert "reduce seccomp profile"

This reverts commit 02b18c16aadfc56354f396757f3bbde4c3d6c9f8.

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* better seccomp

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>

* add config for apparmor

Signed-off-by: Shang Wang <shang.wang@datadoghq.com>
2019-09-25 06:30:00 -07:00
Javi Polo 3ff7c31fb4 [stable/datadog] Add possibility to extract node labels as metric tags (#17184)
Signed-off-by: Javi Polo <javipolo@drslump.org>
2019-09-17 13:11:15 -07:00
Ahmed Mezghani b87b93fc69 [stable/datadog] Make deployment strategies configurable (#17165)
* update readme

Signed-off-by: Ahmed Mezghani <ahmed.mezghani@outlook.com>

* update default strategies

Signed-off-by: Ahmed Mezghani <ahmed.mezghani@outlook.com>

* update readme + maxUnavailable

Signed-off-by: Ahmed Mezghani <ahmed.mezghani@outlook.com>

* quotes

Signed-off-by: Ahmed Mezghani <ahmed.mezghani@outlook.com>
2019-09-17 08:12:24 -07:00
Cedric Lamoriniere d4ffe43751 [stable/datadog] Update application version to 6.13.0 and ksm to 1.7.2 (#16267)
* Update stable/datadog application to 6.13.0

* Bump the chart version to `1.33.0`
* Update the application version to `6.13.0`
* Update Kube-State-Metrics version to `1.7.2` with chart `2.2.3`
* Fix wrong indentation in kube-state-metrics parameters
* Document the possibility to overwrite KSM container resources
* Add ci/*-values.yaml files for CI validation

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* temporary remove stable/datadog/ci folder

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>

* add in comment example

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>
2019-08-16 11:20:10 -07:00
farshad-hobsons 8f3e5889dd [stable/datadog] Add an option to reference an existing clusterAgent.token (#16208)
* [stable/datadog]: adding option to pass existing ClusterAgent token secret

Signed-off-by: Fahad Arshad <fahad.arshad@hobsons.com>

* [stable/datadog]: Chart version bump

Signed-off-by: Fahad Arshad <fahad.arshad@hobsons.com>

* [stable/datadog]: adding an extra line in agent-secret.yaml

Signed-off-by: Fahad Arshad <fahad.arshad@hobsons.com>

* use clusterAgent.tokenSecretName template to make code DRY

Signed-off-by: Fahad Arshad <fahad.arshad@hobsons.com>
2019-08-13 04:29:41 -07:00
Joe Hohertz 6c5a877928 allow setting tolerations for clusterchecks (#15624)
Signed-off-by: Joe Hohertz <joe@viafoura.com>
2019-07-30 07:38:51 -07:00
Cedric Lamoriniere a944a6ebaf [stable/datadog] Fix several aspect of KSM integration (#15908)
* [stable/datadog] Fix error in readme configuration parameter
* Fixes #15526. `rbac.serviceAccount` should be `rbac.serviceAccountName` in configuration parameter table
* Update kube-state-metrics deps to 2.0.0
* bump stable/datadog chart to 1.32.0

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>
2019-07-30 06:26:51 -07:00
Dennis Webb 96a0359aaa [stable/datadog] Adds podAnnotations to cluster-agent deployment (#15384)
Signed-off-by: Dennis Webb <dennis@bluesentryit.com>
2019-07-15 02:05:07 -07:00