This is an example for lxd users to use azure-CNI for provisioning IP for container.
For lxd integration, follows calico-for-lxc-and-lxd; For azure-CNI invoking, follows Azure Container Networking scripts.
- Read and apply
provision.sh
for provisioning sample resources. - ssh to the provisioned nodes
- To start a lxd container:
./lxd-create.sh default ubuntu:20.04 foobar
. - Start a service inside the container:
lxc exec foobar -- bash
, thenpython3 -m http.server
. - observe the assigned IP by
lxc list
- try
curl -vm5 http://<container-ip>:8000
.
For now only 20.04 has been tested.