-
Notifications
You must be signed in to change notification settings - Fork 80
Open
Description
This part on the code
https://github.com/metallb/metallb-operator/blob/main/main.go#L129-L132
metricsAddr = flag.String("metrics-addr", ":0", "The address the metric endpoint binds to.")
...
mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{
Scheme: scheme,
Metrics: metricsserver.Options{
BindAddress: *metricsAddr,
},
when ":0" it opens a random high port in the container
ss -natp |grep LISTEN
LISTEN 0 4096 *:8080 *:*
LISTEN 0 4096 *:33391 *:*
LISTEN 0 4096 *:9443 *:*
which is not ideal. We should improve that part either
- Disable fully the metrics server when there is no argument
- Fix a high random static port, so at least a grep search will show what it is
- Something else
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels