Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Antonin Bas <[email protected]>
  • Loading branch information
antoninbas committed Jan 22, 2025
1 parent 5e0a7bc commit 0702c7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/antrea-proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ E0117 19:38:17.586328 1 service_health.go:145] "Failed to start healthchec

These log messages will keep repeating periodically, as kube-proxy handles
Service updates. While the messages are harmless, they can create a lot of
necessary noise. You may want to set `antreaProxy.disableServiceHealthCheckServer: true`
unnecessary noise. You may want to set `antreaProxy.disableServiceHealthCheckServer: true`
in the `antrea-config` ConfigMap to avoid such logs. It will instruct Antrea Proxy
to stop running health check servers and shift this responsibility to
kube-proxy. This is not a perfect solution as ideally the component responsible
Expand Down
8 changes: 4 additions & 4 deletions pkg/agent/proxy/proxier.go
Original file line number Diff line number Diff line change
Expand Up @@ -1383,13 +1383,13 @@ func newProxier(

var serviceHealthServer healthcheck.ServiceHealthServer
if proxyAllEnabled {
nodePortAddressesString := make([]string, len(nodePortAddresses))
for i, address := range nodePortAddresses {
nodePortAddressesString[i] = address.String()
}
if serviceHealthServerDisabled {
klog.V(2).InfoS("Service health check server will not be run")
} else {
nodePortAddressesString := make([]string, len(nodePortAddresses))
for i, address := range nodePortAddresses {
nodePortAddressesString[i] = address.String()
}
serviceHealthServer = healthcheck.NewServiceHealthServer(hostname, nil, nodePortAddressesString)
}
}
Expand Down

0 comments on commit 0702c7e

Please sign in to comment.