Forum Discussion

muhammed1605's avatar
muhammed1605
Copper Contributor
Oct 03, 2023

scale open vpn server at kubernetes

 

Assume that there are openvpn server pod at kubernetes cluster. we have fabric and there are modem contains open vpn client ,Admin connects to this modem then he or she configure open vpn client to connect k8s open vpn server application pod .We have more than 1 maintenance operator(maybe 100 ) he or she can connects to azure aks open vpn server with their desktop open vpn client.So by this way azure acts like gateway then it creates a tunnel between client and fabric over azure vpn.But When Admin connect this device to azure pod ,we dont know which pod connected to this fabric.So my question is that how can we create open vpn server at azure and when we scale this open vpn server pod.How the operator knows which pods connected to right machine.Because both of the pod has different configuration maybe.Openvpn has some limitation ,you can create 2000 connection at a time,so thats why we need to scale

 

2 Replies

  • dineshjaisankar's avatar
    dineshjaisankar
    Copper Contributor

    How the operator knows which pods are connected to the right machine:

    When a maintenance operator connects to the OpenVPN server, they will be assigned a random pod. The load balancer will distribute the traffic between the pods based on a specific algorithm, such as round robin or least connections.

     

     

    • muhammed1605's avatar
      muhammed1605
      Copper Contributor

      dineshjaisankar 

       

      thats why ı am trying to fix.So When device connected to pod 1,maintenant operator should connect to pod1 otherwise it doesnot work. So i mean both admin and maintenaance oeprator should connect right open vpn server.How can i success ?

       

      thank you

Resources