Skip to content

Conversation

@vknabel
Copy link
Contributor

@vknabel vknabel commented Feb 20, 2025

Description

Caution

DO NOT MERGE!

Proof of concept whether it is possible to use MachineDeployments to create and roll firewalls.
At a first glance this looks promising and it should be possible to implement.

To make this production ready:

  • Add MetalStackFirewall which implements the infra machine protocol
    • with firewall rules
  • Separate controller for the metalstackfirewall
    • needs to set machine.bootstrap.dataSecretName and needs to generate the secret containing User Data (this is slightly off the contract)

This should enable automatic rolling updates of the firewall whenever the firewall rules change. All handled by cluster api.

@vknabel
Copy link
Contributor Author

vknabel commented Feb 21, 2025

This approach was worth a try, but we should not continue the efforts in this direction. Machines are defined as k8s nodes and are therefore required to be represented in the target cluster and get referenced from the machine resource.

@vknabel vknabel closed this Feb 21, 2025
@vknabel vknabel deleted the firewall-machine-deployment branch February 21, 2025 11:51
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

Successfully merging this pull request may close these issues.

2 participants