Repository navigation
feat(edge): run the edge in its own aether-ingress namespace - #268
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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'saether.io/managed: "false"label was the prerequisite — outsideaether-systemthe CNI plugin no longer skips it by namespace, but the agent'sisIgnorablePodstill ignores it by label.What
aether.edge.namespacehelper (defaultaether-ingress, viaedge.namespace). The edge Deployment / Service / ServiceAccount / ConfigMap / Role+RoleBinding / ClusterSPIFFEID-selector all render into it.edge-namespace.yamlcreatesaether-ingresswith baseline PSA (the edge is unprivileged — non-root, drops ALL caps, adds onlyNET_BIND_SERVICE— unlike the privileged control-plane namespace the agent/CNI need). Gated onedge.enabled+edge.namespaceCreate.edge-meshconfig.yamlseeds a namespaceddefaultMeshConfig inaether-ingresswithspec: {}— 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.namespaceSelectortargetsaether-ingress; thePodMeta.Namespacetemplate makes the SVIDspiffe://<td>/ns/aether-ingress/sa/aether-edge.--registrar-addressexplicitly (release-namespace-correct) — the edge now reaches the registrar cross-namespace and the binary default assumesaether-system.Edge stays opt-in (
edge.enableddefaultfalse).Verified
helm template --set edge.enabled=true: all edge resources render intoaether-ingress; both MeshConfigs render (control-plane + edgespec: {});aether-ingressnamespace with baseline PSA; SPIRE selector =aether-ingress; registrar address =<registrar>.<release-ns>.svc:443; edge selector unchanged (upgrade-safe);helm lintclean. Chart0.20.0 → 0.21.0.e2e on talos to follow once #267 + this land (includes the #267 CRD migration).