I had not added portainer to the public network , it was just part of ingress network and agent-portainer network. When I added to public network it became accessible