Skip to content

Commit 876e980

Browse files
Merge pull request #72 from signadot/routing-iptablesMode
Addition of routing.iptablesMode
2 parents 5337613 + 32a50cf commit 876e980

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

signadot/operator/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,11 @@ Note that, unlike with Istio, routing in Linkerd is not expressed via Linkerd CR
320320

321321
### Routing parameters
322322

323-
| Name | Description | Default |
324-
| ----------------------- | ----------------------------------------------- | ------- |
325-
| `routing.customHeaders` | List of custom headers used for sandbox routing | `[]` |
323+
| Name | Description | Default |
324+
| ----------------------- | ------------------------------------------------------------------------------------- | -------- |
325+
| `routing.iptablesMode` | `iptables` variant to use when configuring rules (possible values: `legacy` or `nft`) | `legacy` |
326+
| `routing.customHeaders` | List of custom headers used for sandbox routing | `[]` |
327+
326328

327329

328330
### Traffic capture parameters

signadot/operator/templates/_helpers.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ routing:
1212
enableHostRouting: {{ if and (hasKey .Values "istio") (hasKey .Values.istio "enableDeprecatedHostRouting") -}}{{ toString .Values.istio.enableDeprecatedHostRouting }}{{- else -}}false{{- end }}
1313
linkerd:
1414
enabled: {{ if and (hasKey .Values "linkerd") (hasKey .Values.linkerd "enabled") -}}{{ toString .Values.linkerd.enabled }}{{- else -}}false{{- end }}
15+
iptablesMode: {{ if and (hasKey .Values "routing") (hasKey .Values.routing "iptablesMode") -}}{{ .Values.routing.iptablesMode }}{{- else -}}legacy{{- end }}
1516
customHeaders: {{ with .Values }}{{ with .routing }}{{ with .customHeaders }}{{ printf "\n" }}{{ toYaml . | indent 4}}{{- else -}}[]{{- end }}{{- else -}}[]{{- end }}{{- else -}}[]{{- end }}
1617
sandboxTrafficManager:
1718
enabled: {{ if and (hasKey .Values "sandboxTrafficManager") (hasKey .Values.sandboxTrafficManager "enabled") -}}{{ toString .Values.sandboxTrafficManager.enabled }}{{- else -}}true{{- end }}

signadot/operator/templates/agent-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ spec:
2222
selector:
2323
matchLabels:
2424
app: signadot-agent
25+
strategy:
26+
type: Recreate
2527
template:
2628
metadata:
2729
annotations:

signadot/operator/templates/tunnel-proxy-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ spec:
117117
{{- if and (not $istioEnabled) (not $linkerdEnabled) $auditorEnabled }}
118118
initContainers:
119119
- env:
120+
- name: SIGNADOT_IPTABLES_MODE
121+
value: {{ with .Values }}{{ with .routing }}{{ with .iptablesMode }}{{ . }}{{- else -}}"legacy"{{- end }}{{- else -}}"legacy"{{- end }}{{- else -}}"legacy"{{- end }}
120122
- name: LUA_ROCKS
121123
value: {{ with .Values }}{{ with .tunnel }}{{ with .auditor }}{{ with .luaRocks }}{{ . }}{{- else -}}""{{- end }}{{- else -}}""{{- end }}{{- else -}}""{{- end }}{{- else -}}""{{- end }}
122124
- name: INBOUND_AUDITOR_PORT

signadot/operator/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ tunnel:
227227
# -----------------------------------------------------------------------------
228228

229229
# routing:
230+
# iptablesMode: nft
230231
# # Define a list of custom routing headers
231232
# customHeaders:
232233
# - header1

0 commit comments

Comments
 (0)