Skip to content

Agent helm chart needs to have configurable dnsPolicy #13139

@binnsr

Description

@binnsr

Describe the enhancement:
Need to have the ability to override the dnsPolicy in elastic agent deployments.

The templates/agent/k8s/_podTemplate.yaml in the Kubernetes agent helm chart has dnsPolicy hardcoded to ClusterFirstWithHostNet which breaks in our environment (hosted DigitalOcean DOKS)
There needs to be a values.yaml option to override the dnsPolicy

Describe a specific use case for the enhancement or feature:
Elastic components in DigitalOcean's managed clusters cannot make connections between resources (i.e. collectors to gateway, agent to outbound, etc) due to DNS Lookup failures that are resolved by changing 'dnsPolicy: ClusterFirstWithHostNet' to 'dnsPolicy: ClusterFirst'

What is the definition of done?
dnsPolicy must be configurable via the values.yaml file

kubectl get -n infra-observability pods/agent-clusterwide-elastic-agent-0 -o json | jq '.spec.dnsPolicy' should return "ClusterFirst" (or whatever is set in the values.yaml setting

Metadata

Metadata

Assignees

No one assigned
    No fields configured for Enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions