Skip to content

feat(edge): run the edge in its own aether-ingress namespace - #268

Merged
bpalermo merged 2 commits into
mainfrom
feat/edge-ingress-namespace
Jun 22, 2026
Merged

bpalermo merged 2 commits into
mainfrom
feat/edge-ingress-namespace

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

PR 2 of 2 for moving the edge out of the control-plane namespace. Depends on #267 (namespaced MeshConfig).

The edge is an ingress gateway, not a mesh workload, so it gets its own namespace (aether-ingress), isolated from the control plane. #266's aether.io/managed: "false" label was the prerequisite — outside aether-system the CNI plugin no longer skips it by namespace, but the agent's isIgnorablePod still ignores it by label.

What

  • New aether.edge.namespace helper (default aether-ingress, via edge.namespace). The edge Deployment / Service / ServiceAccount / ConfigMap / Role+RoleBinding / ClusterSPIFFEID-selector all render into it.
  • edge-namespace.yaml creates aether-ingress with baseline PSA (the edge is unprivileged — non-root, drops ALL caps, adds only NET_BIND_SERVICE — unlike the privileged control-plane namespace the agent/CNI need). Gated on edge.enabled + edge.namespaceCreate.
  • edge-meshconfig.yaml seeds a namespaced default MeshConfig in aether-ingress with spec: {} — it inherits the control-plane MeshConfig field-by-field via feat(controller): namespaced MeshConfig with aether-system fallback #267's fallback, so the edge's projected ConfigMap mirrors the mesh by default; operators edit it for edge-specific observability.
  • SPIRE: the ClusterSPIFFEID namespaceSelector targets aether-ingress; the PodMeta.Namespace template makes the SVID spiffe://<td>/ns/aether-ingress/sa/aether-edge.
  • Pass --registrar-address explicitly (release-namespace-correct) — the edge now reaches the registrar cross-namespace and the binary default assumes aether-system.

Edge stays opt-in (edge.enabled default false).

Verified

helm template --set edge.enabled=true: all edge resources render into aether-ingress; both MeshConfigs render (control-plane + edge spec: {}); aether-ingress namespace with baseline PSA; SPIRE selector = aether-ingress; registrar address = <registrar>.<release-ns>.svc:443; edge selector unchanged (upgrade-safe); helm lint clean. Chart 0.20.0 → 0.21.0.

e2e on talos to follow once #267 + this land (includes the #267 CRD migration).

bpalermo and others added 2 commits June 22, 2026 18:29
The edge is an ingress gateway, not a mesh workload. Move its resources out of the
release namespace into a dedicated `aether-ingress` (configurable via
edge.namespace; the chart creates it with baseline PSA unless namespaceCreate is
false). #266's explicit aether.io/managed=false label keeps it mesh-excluded
namespace-agnostically (the CNI plugin no longer skips it by namespace, but the
agent's isIgnorablePod still ignores it by label). Edge stays opt-in
(edge.enabled default false).

- New aether.edge.namespace helper; edge Deployment/Service/ServiceAccount/
  ConfigMap/Role+RoleBinding/ClusterSPIFFEID-selector all render into it.
- edge-namespace.yaml creates aether-ingress (baseline PSA — the edge is
  unprivileged, unlike the agent/CNI's privileged control-plane namespace).
- edge-meshconfig.yaml seeds a namespaced `default` MeshConfig in aether-ingress
  with an empty spec: it inherits the control-plane MeshConfig via the controller's
  fallback (PR #267), so the edge's projected ConfigMap mirrors the mesh by
  default; operators can edit it for edge-specific observability.
- SPIRE: the ClusterSPIFFEID namespaceSelector targets aether-ingress; the
  PodMeta.Namespace template makes the SVID ns/aether-ingress/sa/aether-edge.
- Pass --registrar-address explicitly (release-namespace-correct) since the edge
  now reaches the registrar cross-namespace and the binary default assumes
  aether-system.

Depends on #267 (namespaced MeshConfig). Chart 0.20.0 -> 0.21.0.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01N7oY7W8oDXrqDzFgoZh25S
…namespace move

The edge no longer runs in aether-system, so "the CNI plugin skips aether-system
pods" is stale: in its own namespace the plugin calls the agent, which ignores the
edge via the managed=false label. Update both comments.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01N7oY7W8oDXrqDzFgoZh25S
@bpalermo
bpalermo merged commit 9ceb37d into main Jun 22, 2026
14 checks passed
@bpalermo
bpalermo deleted the feat/edge-ingress-namespace branch June 22, 2026 21:36
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.

1 participant