Backend.AI is a streamlined, container-based computing cluster platform that hosts popular computing/ML frameworks and diverse programming languages, with pluggable heterogeneous accelerator support including CUDA GPU, ROCm GPU, TPU, IPU and other NPUs.
Metadata URLs in clouds (e.g., 169.254.169.254 in AWS EC2) exposes many system detail information to containers.
We need to restrict some of those information and also need to provide a more flexible way of interacting with the agent and containers and user programs.
Using the following command in the agent host, access to http://169.254.169.254 is redirected to 172.17.0.1:8000, where 172.17.0.1 is the IP address of the docker0 interface, while still allowing the host's metadata access:
Let's make the agent to listen on a specific local port on the docker0 interface and redirect the metadata URL traffic to it.
After then, we could expand features based on container-agent interactions.
We need to detect docker0 IP address at runtime or at least it should be configurable, because it may be different site-by-site.
@kyujin-cho The internal port number 40128 introduced in lablup/backend.ai-agent#319 should be configurable in the local config and by install-dev.sh to allow multiple agents in a single host (#496).
Metadata URLs in clouds (e.g., 169.254.169.254 in AWS EC2) exposes many system detail information to containers. We need to restrict some of those information and also need to provide a more flexible way of interacting with the agent and containers and user programs.
Using the following command in the agent host, access to
http://169.254.169.254
is redirected to172.17.0.1:8000
, where 172.17.0.1 is the IP address of thedocker0
interface, while still allowing the host's metadata access:Let's make the agent to listen on a specific local port on the docker0 interface and redirect the metadata URL traffic to it. After then, we could expand features based on container-agent interactions. We need to detect
docker0
IP address at runtime or at least it should be configurable, because it may be different site-by-site.