

This allows us to use the hostname mongodb to connect to MongoDB. One each for mongodb and nodejs applications. There are two services defined in the manifest that was deployed above. Then we will finish up with two scenarios: virtual machine to virtual machine communication and ingress to virtual machine. Now that we have a clearier picture of kubevirt networking we will continue with details regarding kubernetes objects, host, pod and virtual machine networking components. The network details - the IP address, gateway, routes, DNS servers and suffixes are taken from the pod which will be served to the virtual machine. This DHCP server only provides a single address to a client in this case the virtual machine that will be started. StartDHCP → DHCPServer → SingleClientDHCPServer This will provide libvirt a bridge to use for the virtual machine that will be created. Once the current details of the pod interface have been stored following operations are performed:ĭelete the IP address from the pod interface This is stored for later use in configuring DHCP. This function gathers the following information about the pod interface: This function calls three functions that are detailed below discoverPodNetworkInterface, preparePodNetworkInterface and StartDHCP discoverPodNetworkInterface

virtwrap managerīefore the virtual machine is started the preStartHook will run SetupPodNetwork. We are only going to concentrate on the network portion in this post.

Virt-launcher is the pod that runs the necessary components instantiate and run a virtual machine. KubeVirt networking virt-launcher - virtwrap
