Home > Blockchain >  k8s - access server inside company network from pod
k8s - access server inside company network from pod

Time:02-16

In our company we have a k3s installation on 2 VM nodes. I deployed an application that needs to retrieve some files which are deposited on another VM. This VM is inside our company network ( simple sketch here).

How can i let my pod access to this server? I need to create Endpoint?

Thanksenter image description here

CodePudding user response:

  • I have a similar set up & requirement , Where pods are in a private network and they need to speak to internet.
  • I had to set up http_proxy & https_proxy variables with the proxy address . Please make sure you are setting no_proxy as well which should contain your pod CIDR, Service CIDR & nodes CIDR .

CodePudding user response:

How can i let my pod access to this server?

You can try setting hostNetwork: true for your pod and connect to the VM resides on the host network.

  • Related