I can’t find a way to create a container on a specific member of the cluster.
I’ve tried to connect directly to a member of the cluster :
c, err := lxd.ConnectLXD("https://1.2.3.4:8443", &CustomConnectionArgs)
req := api.ContainersPost{
Name: ctname,
Source: api.ContainerSource{
Type: "image",
Alias: imgname,
},
}
op, err := c.CreateContainer(req)
but somehow the container is always created on my first cluster member.
Am I missing something ?