DataDog / helm-charts

Helm charts for Datadog products
Apache License 2.0
330 stars 1.01k forks source link

Get errors when installing datadog helm charts in the GKE autopilot cluster #1375

Closed watercc closed 3 months ago

watercc commented 3 months ago

Describe what happened: I used terraform helm_release to try to install the datadog helm chart in an autopilot cluster in GKE, and got the following errors:

admission webhook "warden-validating.common-webhooks.networking.gke.io" denied the request: GKE Warden rejected the request because it violates one or more constraints. Violations details: {"[denied by autogke-disallow-hostnamespaces]":["enabling hostNetwork is not allowed in Autopilot."],"[denied by autogke-no-host-port]":["container cluster-agent specifies host ports [5005 5000 443], which are disallowed in Autopilot."]}

providers.gke.autopilot is set to True

Describe what you expected: I expect the datadog chart can be installed in the autopilot cluster

Steps to reproduce the issue:

Additional environment details (Operating System, Cloud provider, etc): Datadog helm chart version: tried 3.57.0 and 3.59.6 GKE autopliot cluster version: tried regular channel 1.26.14-gke.1006000 and 1.27.11-gke.1062000

watercc commented 3 months ago

Noticed that I set clusterAgent.useHostNetwork to true. Change it to false resolves the issue.

watercc commented 3 months ago

Close the ticket