Skip to content

Commit 3885e4a

Browse files
authored
docs: rolling firewalls (#121)
1 parent 695d617 commit 3885e4a

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ test-e2e: manifests generate fmt vet ginkgo kustomize
169169
ARTIFACTS=$(ARTIFACTS) \
170170
E2E_DEFAULT_FLAVOR=$(E2E_DEFAULT_FLAVOR) \
171171
KUBETEST_CONFIGURATION="$(shell git rev-parse --show-toplevel)/test/e2e/frmwrk/data/kubetest/conformance.yaml" \
172-
$(GINKGO) -vv -r --junit-report="junit.e2e_suite.xml" --output-dir="$(ARTIFACTS)" --label-filter="$(E2E_LABEL_FILTER)" -timeout 60m ./test/e2e/frmwrk
172+
$(GINKGO) -vv -r --junit-report="junit.e2e_suite.xml" --output-dir="$(ARTIFACTS)" --label-filter="$(E2E_LABEL_FILTER)" -timeout 120m ./test/e2e/frmwrk
173173

174174
.PHONY: lint
175175
lint: golangci-lint ## Run golangci-lint linter

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,19 @@ When generating your cluster, set `POD_CIDR` to your desired value.
167167
export POD_CIDR=["10.240.0.0/12"]
168168
```
169169

170+
## I'd like to update the firewall and / or its rules. How can I achieve this?
171+
172+
Unfortunately there is no automated way to update firewall deployments or rules yet. You have to manually edit the `MetalStackFirewallDeployment` resource to force it to create a new firewall.
173+
174+
1. Save the firewall machine ID stored in `MetalStackFirewallDeployment.spec.managedResourceRef.name`.
175+
2. Update the `MetalStackFirewallTemplate` as desired.
176+
3. Remove `MetalStackFirewallDeployment.spec.managedResourceRef`.
177+
4. Wait for CAPMS to create the new firewall.
178+
5. Wait for the new firewall to be in `Phoned Home` state using `metalctl machine list --id <new-id>`.
179+
6. Delete the old firewall machine using `metalctl machine delete <old-id>` as soon as possible.
180+
181+
This leads to a minimized downtime of the cluster as the firewall is not available during the transition.
182+
170183
## Flavors
171184

172185
You might choose from different cluster template [flavors](https://cluster-api.sigs.k8s.io/clusterctl/commands/generate-cluster.html?highlight=flavor#flavors) to generate manifests with clusterctl. Here is a table describing the available flavors:

0 commit comments

Comments
 (0)