I have a DOKS cluster running Kubernetes Jobs, and one of these jobs needs to query an external database from a client that seats behind a VPN. I couldn’t find any relevant information on how to be able to access the external database from the cluster. Any help or pointers to the right direction? Thanks a lot!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
This isn’t really a problem of Kubernetes. It’s a problem of your SQL server and VPN settings. How would you access the database from a laptop without VPN access?
I don’t know the exact answer, but you could look into the following: