portainer / agent

The Portainer agent
https://www.portainer.io
zlib License
297 stars 67 forks source link

Cannot connect to Portainer Agent version 2.0.0 on Azure Kubernetes Service #160

Open TVGSOFT opened 3 years ago

TVGSOFT commented 3 years ago

I have deployed portainer agent on AKS follow the scripts as below: curl -L https://downloads.portainer.io/portainer-agent-k8s-lb.yaml -o portainer-agent-k8s.yaml; kubectl apply -f portainer-agent-k8s.yaml

And got an error as below, the portainer instance cannot connect to this endpoint:

2020/12/14 15:13:46 [INFO] [main] [message: Agent running on Kubernetes platform] 2020/12/14 15:13:49 [DEBUG] [main,net] [host: portainer-agent-headless] [result: 1] [ip: 20.4.0.19] 2020/12/14 15:13:49 [DEBUG] [cluster,serf] [advertise_address: 20.4.0.19] [join_address: [20.4.0.19]] 2020/12/14 15:13:49 [WARN] memberlist: Binding to public address without encryption! 2020/12/14 15:13:49 [INFO] serf: EventMemberJoin: -portainer-agent-864766cdbf-67t85 20.4.0.19 2020/12/14 15:13:49 [DEBUG] [cluster,serf] [contacted_nodes: 1] 2020/12/14 15:13:49 [DEBUG] [main,configuration] [agent_port: 9001] [cluster_address: portainer-agent-headless] [advertise_address: 20.4.0.19] 2020/12/14 15:13:49 [INFO] [http] [server_addr: 0.0.0.0] [server_port: 9001] [secured: true] [api_version: 2.0.0] [message: Starting Agent API server] 2020/12/14 15:13:54 http: TLS handshake error from 20.4.0.4:34153: read tcp 20.4.0.19:9001->20.4.0.4:34153: i/o timeout 2020/12/14 15:13:54 http: TLS handshake error from 20.4.0.115:61359: read tcp 20.4.0.19:9001->20.4.0.115:61359: i/o timeout

Wamy-Dev commented 2 months ago

same for me