datadog-operator icon indicating copy to clipboard operation
datadog-operator copied to clipboard

Service ports do not change for datadog-agent if changed default HostPort for dogstatsd

Open ivanov-danil opened this issue 1 year ago • 2 comments

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,
				},
			},

ivanov-danil avatar Jun 09 '23 10:06 ivanov-danil

Hi,

Thanks for reporting this. We've added a fix in https://github.com/DataDog/datadog-operator/pull/823

khewonc avatar Jun 15 '23 21:06 khewonc

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

igordrnobrega avatar Nov 29 '23 21:11 igordrnobrega