MongoDB external access using kubernetes

Hi Team,

Have deployed Mongodb using bitnami helmcharts as stateful sets where architecture is replica set in microk8s env with 2 nodes. Microk8s cluster doesn’t have public ip/dns to expose my service, so i used node port as a service and configured port forwarding in my haproxy server config from where my traffic is coming through (public dns/ip) . after that i m using trying to connect to my db which is inside pod from robo3T using public ip and port and db username/passwd and dbname it is showing unautherisarion issue.