datadog-operator
datadog-operator copied to clipboard
Service ports do not change for datadog-agent if changed default HostPort for dogstatsd
Describe what happened:
Service ports do not change for datadog-agent if changed default HostPort for dogstatsd
datadog-agent ClusterIP 10.233.35.185 <none> 8126/TCP,8125/UDP 20m
features:
dogstatsd:
hostPortConfig:
enabled: true
hostPort: 8127
Describe what you expected: Service ports are changed
Steps to reproduce the issue:
features:
dogstatsd:
hostPortConfig:
enabled: true
hostPort: 8127
Additional environment details (Operating System, Cloud provider, etc): Problem is here DefaultDogstatsdPort using, not a HostPort. But in same time - APM using right HostPort here
Ports: []corev1.ServicePort{
{
Protocol: corev1.ProtocolUDP,
TargetPort: intstr.FromInt(apicommon.DefaultDogstatsdPort),
Port: apicommon.DefaultDogstatsdPort,
Name: apicommon.DefaultDogstatsdPortName,
},
},
Hi,
Thanks for reporting this. We've added a fix in https://github.com/DataDog/datadog-operator/pull/823
Hi guys, taking advantage of this bug that seems to be the same for features.dogstatsd.unixDomainSocketConfig.path
. Can you guys take a look? Please