Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Would it be possible to add vlan tag support? #175

Closed
CloudFireSrl opened this issue Apr 16, 2024 · 6 comments
Closed

Would it be possible to add vlan tag support? #175

CloudFireSrl opened this issue Apr 16, 2024 · 6 comments

Comments

@CloudFireSrl
Copy link

CloudFireSrl commented Apr 16, 2024

          Would it be possible to add vlan tag support at the same time?

Originally posted by @mkamsikad2 in #29 (comment)

Hi everyone, as @mkamsikad2 mentioned some months ago, can vlan tag support be added during VM's creation?

It could be handy feature.

Thank you,
Fabio

@CloudFireSrl CloudFireSrl changed the title Would it be possible to add vlan tag support at the same time? Would it be possible to add vlan tag support? Apr 16, 2024
@CiraciNicolo
Copy link
Contributor

Hi! The PR #133 implements just that ☺️

@wikkyk
Copy link
Collaborator

wikkyk commented Apr 19, 2024

VLAN tag support contributed by @CiraciNicolo has been released with 0.4.0. Enjoy!

@wikkyk wikkyk closed this as completed Apr 19, 2024
@lnxu303
Copy link

lnxu303 commented May 6, 2024

Hello,

@CiraciNicolo / @wikkyk thank you very much for adding support for VLAN tagging! Could you please explain how to make use of this feature? I tried to add VLAN: XY to the networking config in clusterctl.yaml but to no avail. After executing clusterctl generate cluster proxmox-quickstart ... > cluster.yaml there was no mention of VLANs in the generated manifests.
I then tried to add the property vlan manually to the ProxmoxMachineTemplate spec (network.default.vlan: 16) after reviewing the changes from the PR but when I try to kubectl apply -f cluster.yaml, I get the following error:

kubectl apply -f cluster.yaml
cluster.cluster.x-k8s.io/proxmox-quickstart created
proxmoxcluster.infrastructure.cluster.x-k8s.io/proxmox-quickstart created
kubeadmcontrolplane.controlplane.cluster.x-k8s.io/proxmox-quickstart-control-plane created
proxmoxmachinetemplate.infrastructure.cluster.x-k8s.io/proxmox-quickstart-control-plane created
machinedeployment.cluster.x-k8s.io/proxmox-quickstart-workers created
error: error parsing cluster.yaml: error converting YAML to JSON: yaml: line 19: did not find expected key

The source of the error seems to be in the ProxmoxMachineTemplate proxmox-quickstart-worker.
I'm confused, as this seems to work for control plane nodes. Am I missing something obvious here?

Thanks for your help!

@CiraciNicolo
Copy link
Contributor

Can you please post your generated files? And maybe describe a little bit more what you are doing? Thanks.

@lnxu303
Copy link

lnxu303 commented May 8, 2024

Nevermind, it was just a missing space. Sorry for bothering you. Thanks for your work on this project :)
After adding vlan: XY to the generated manifest, the cloned VMs had their VLAN tag set correctly 🎉

@lknite
Copy link

lknite commented Oct 17, 2024

Would be nice if 'clusterctl generate' added the 'vlan:' automatically if its in the ~/.clusterapi/clusterctl.yaml file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants