Replies: 2 comments 4 replies
-
Welcome to inception :-) I would suggest the following:
Certainly (1) and (2) work fine. The fact that you cannot build a cluster out of "virtual machines" means that you cannot directly associate your LXD cluster to its constituent VMs; you might be able to cobble something together with custom fields though, e.g. an Object field on VirtualMachine which points to Cluster. (Aside: Netbox 3.3 has gained the ability to "pin" a virtual machine to the specific device in the cluster that it's running on. That's neat, but doesn't help the case where a virtualization cluster itself is built from virtual machines, not devices) I've never attempted to model docker containers or a kubernetes cluster in Netbox to the level of the individual containers - I consider that to be part of the application, not data centre infrastructure. I don't see why it shouldn't be done - after all, in Kubernetes at least, each pod does have its own IP address and virtual interface. Again, in Netbox, these docker containers are associated with a "cluster" but that cluster is not directly associated with its parent lxd container instance(s), without extra customization. However, it really depends what you want to use this data for. If you're going to use it for provisioning docker containers - perhaps using Netbox as a source-of-truth to push out Kubernetes resources or whatever - then you're going to need a lot more detail about how to provision a container. At that point, it may make more sense to write a plugin with a custom object type for a Docker container, which in turn can point to either a VM or a Device or a Cluster as its parent. |
Beta Was this translation helpful? Give feedback.
-
Is there a way to have netbox be "updated" dynamically with the virtual machines (VirtualMachines) that are fed from a "Cluster" which is a LXD host for example? The task of keeping the netbox inventory updated continously is what I try to achieve by either pushing or pulling data into netbox. Is there a mechanism for this? E.g. keeping a netbox inventory of many LXD hosts and the VirtualMachines that are added/removed continously. Is there a way otherwise to implement such a thing? |
Beta Was this translation helpful? Give feedback.
-
Hi NetBox Gurus-
I was playing around in the demo.netbox.dev instance and can't figure something out... how would you represent a (application) docker container running in a (userspace) lxc container in a LXD cluster on multiple Ubuntu VMs across separate nodes in a XCP-NG cluster?
I see the answer to 9655 but this seem to be a more complicated hierarchy than that... (please note this is not for me!)
Regardless, any ideas would be appreciated. Thx.
Bob
Beta Was this translation helpful? Give feedback.
All reactions