You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During creation of our VM with public IP, we need to use the publicIP available from the metadata server to inject data during the kubeAdm join process.
But sometime the publicIp returned by the metadata server during the boot is set to ok
Deploy the OscMachineTemplate with spec.template.spec.node.vm.publicIp=true and MachineDeployment associated to the previous KubeAdmTemplate
Sometime the VM is well created and the node-labels.public-ip is well provisioned with the public IP.
But sometime the node-labels.public-ip is set to OK.
Expected to happen
The publicIP is available at the VM creation and the metadata server return it.
Add anything
After some investigation this issue is related to publicIP link with the VM that is coming to late.
To fix this we can create a NIC and attach them the publicIp, and provide this NIC at the VM creation.
It is probably simpler to add the tag rather than creating nics (unless you have a specific requirement I missed, please provide more details if that is the case)... I'll look into it.
@jfbus the way I understand osc.fcu.eip.auto-attach is that you specify the nic you want.
So if you want 5 VMs, with 5 different IPs, then you need to create 5 different machines with the different tag.
I think osc.fcu.eip.auto-attach is more of a hack than a proper solution. For instance, we'll never be able to get autoscaling with osc.fcu.eip.auto-attach.
What happened
During creation of our VM with public IP, we need to use the publicIP available from the metadata server to inject data during the kubeAdm join process.
But sometime the publicIp returned by the metadata server during the boot is set to
ok
Step to reproduce
Step to reproduce:
OscMachineTemplate
withspec.template.spec.node.vm.publicIp=true
andMachineDeployment
associated to the previousKubeAdmTemplate
Sometime the VM is well created and the
node-labels.public-ip
is well provisioned with the public IP.But sometime the
node-labels.public-ip
is set toOK
.Expected to happen
The publicIP is available at the VM creation and the metadata server return it.
Add anything
After some investigation this issue is related to publicIP link with the VM that is coming to late.
To fix this we can create a NIC and attach them the publicIp, and provide this NIC at the VM creation.
cluster-api output
Environment
The text was updated successfully, but these errors were encountered: