rancher / quickstart

382 stars 342 forks source link

Harvester - Quickstart using management cluster network #237

Open ProtossGP32 opened 3 months ago

ProtossGP32 commented 3 months ago

DESCRIPTION: I'd like to be able to deploy Rancher on Harvester by using the Management network as the VMs network.

RATIONALE: I've deployed Harvester 1.3.1 in a server that currently has only one enabled NIC. I'm having troubles properly configuring a VM network binded to the mgmt Cluster Network that assign IPs to the VMs (I don't have a DHCP server for this) and the only way I've been able to assign IPs to VMs is by selecting mgmt network as the primary VM network interface. Having reached that point, I'd expect the Terraform quickstart deployment to accept the mgmt Cluster network as a valid one even if no VM network are available:

imatge

You can see here that the quickstart VM is trying to use a VM network bridget to the mgmt Cluster Network but it isn't retrieving IPs:

imatge imatge

Comparing the Network configs on the VMs I see that the ones with IP have a network_name management Network, but I can't seem to be able to use it in the quickstart Terraform variable nor I find it as a network-attachment-definition: imatge

kubectl --kubeconfig ~/.harvester/config get network-attachment-definitions.k8s.cni.cncf.io -A
NAMESPACE   NAME       AGE
default     untagged   117m
default     vm-net-1   3h13m