diff --git a/pkg/guestagent/kubernetesservice/kubernetesservice.go b/pkg/guestagent/kubernetesservice/kubernetesservice.go index e0e5d4730843..228f5e68e24d 100644 --- a/pkg/guestagent/kubernetesservice/kubernetesservice.go +++ b/pkg/guestagent/kubernetesservice/kubernetesservice.go @@ -7,6 +7,7 @@ import ( "net" "net/url" "os" + "strings" "sync" "time" @@ -142,7 +143,7 @@ func (s *ServiceWatcher) GetPorts() []Entry { } entries = append(entries, Entry{ - Protocol: Protocol(portEntry.Protocol), + Protocol: Protocol(strings.ToLower(string(portEntry.Protocol))), IP: net.ParseIP("0.0.0.0"), Port: uint16(port), })