I am stuck in an issue where my managed notebook does not have a public IP and I need to install some packages(like langchain) from the internet. Any idea how can I let my managed notebook communicate to the internet?
P.S. I am not using Google managed network instead I chose the network in my project and created a private service connection.
Hi @ambeshsingh,
Welcome to the Google Cloud Community!
You may utilize Cloud NAT, specifically Public NAT, to connect your managed notebook to the internet.
Public NAT lets Google Cloud resources that do not have public IP addresses communicate with the internet. These VMs use a set of shared public IP addresses to connect to the internet. Public NAT does not rely on proxy VMs. Instead, a Public NAT gateway allocates a set of external IP addresses and source ports to each VM that uses the gateway to create outbound connections to the internet [1].
You may refer to this documentation to understand how to configure the Public NAT.
Hi @lawrencenelson thank you for the response. Public NAT was the first thing that I tried and still could not connect to internet for installing packages. The reason I believe is that the managed notebook hardware is not in my GCP project but in the Google's service project. Hence NAT is not helping here. Let me know if there is any custom routes or any other advertising that i need to do for letting my managed notebook with private service connection install packages from internet