spidernet-io / egressgateway

Network egress policy for Kubernetes

Home Page:https://spidernet-io.github.io/egressgateway/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

【egress-agent】port conflict when installing

bzsuni opened this issue · comments

kubectl logs -f -n kube-system egressgateway-agent-zf2qc
{"NodeName":"master2","LeaderElection":true,"LeaderElectionNamespace":"","LeaderElectionID":"egressgateway","LeaderElectionLostRestart":false,"MetricsBindAddress":"0","HealthProbeBindAddress":":5810","GopsPort":5812,"WebhookPort":8881,"PyroscopeServerAddr":"","PodName":"egressgateway-agent-zf2qc","PodNamespace":"kube-system","GolangMaxProcs":-1,"TLSCertDir":"/etc/tls","ConfigMapPath":"/tmp/config-map/conf.yml","UseDevMode":true,"Level":"info","WithCaller":true,"Encoder":"json","FileConfig":{"EnableIPv4":true,"EnableIPv6":false,"IPTables":{"BackendMode":"legacy","RefreshIntervalSecond":90,"PostWriteIntervalSecond":1,"LockTimeoutSecond":0,"LockProbeIntervalMillis":50,"InitialPostWriteIntervalSecond":0,"RestoreSupportsLock":true,"LockFilePath":"/run/xtables.lock"},"DatapathMode":"iptables","TunnelIpv4Subnet":"192.200.0.0/16","TunnelIpv6Subnet":"feee:200::/64","TunnelDetectMethod":"defaultRouteInterface","VXLAN":{"Name":"egress.vxlan","ID":100,"Port":7789,"DisableChecksumOffload":false},"MaxNumberEndpointPerSlice":100,"Mark":"0x26000000","AnnouncedInterfacesToExclude":["^cali.*","br-*"],"EnableGatewayReplyRoute":false,"GatewayReplyRouteTable":600,"GatewayReplyRouteMark":39,"GatewayFailover":{"Enable":false,"TunnelMonitorPeriod":5,"TunnelUpdatePeriod":5,"EipEvictionTimeout":15}}}
failed to create manager: error listening on :5810: listen tcp :5810: bind: address already in use
[root@master2 ~]# netstat -tp| grep 5810
tcp        0      0 localhost:5810          localhost:2379          ESTABLISHED 45256/kube-apiserve
tcp        0      0 localhost:2379          localhost:5810          ESTABLISHED 15061/etcd



commented

any update ? --> enhancement ?

This port occupation cannot be avoided, it is occupied by actively initiating connections.