Skip to content

Commit 305a1c1

Browse files
Add make target to create firewall.
1 parent d1eb203 commit 305a1c1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

capi-lab/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,7 @@ controller:
3333
kind --name metal-control-plane load docker-image $(IMG)
3434
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)"}]}}}}'
3535
kubectl --kubeconfig=$(KUBECONFIG) delete pod -n cap-metal-stack -l control-plane=metal-stack-controller-manager
36+
37+
.PHONY: firewall
38+
firewall:
39+
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 commit comments

Comments
 (0)