Skip to content

Commit

Permalink
Add make target to create firewall.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertvolkmann committed Jan 7, 2025
1 parent d1eb203 commit 305a1c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions capi-lab/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ controller:
kind --name metal-control-plane load docker-image $(IMG)
kubectl --kubeconfig=$(KUBECONFIG) patch deployments.apps -n cap-metal-stack metal-stack-controller-manager --patch='{"spec":{"template":{"spec":{"containers":[{"name": "manager","imagePullPolicy":"IfNotPresent","image":"$(IMG)"}]}}}}'
kubectl --kubeconfig=$(KUBECONFIG) delete pod -n cap-metal-stack -l control-plane=metal-stack-controller-manager

.PHONY: firewall
firewall:
metalctl firewall create --description fw --name fw --hostname fw --project 00000000-0000-0000-0000-000000000001 --partition mini-lab --image firewall-ubuntu-3.0 --size v1-small-x86 --firewall-rules-file=capi-lab/firewall-rules.yaml --networks internet-mini-lab,16ec44b7-771b-4514-bb91-d1312a70cdcd

0 comments on commit 305a1c1

Please sign in to comment.