Skip to content

feat(edge): edge.enabled chart — Deployment, Service, bootstrap, RBAC, SPIRE identity - #238

Merged
bpalermo merged 1 commit into
mainfrom
feat/edge-chart
Jun 19, 2026
Merged

bpalermo merged 1 commit into
mainfrom
feat/edge-chart

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

What

PR3 of the edge proxy plan (on merged #236 + #237). Adds the edge (north-south ingress) gateway to charts/aether behind edge.enabled (default off): an unprivileged Deployment running plain Envoy + an agent edge sidecar that serves it xDS over a pod-local socket. The edge dials mesh pods directly over mTLS and routes by EdgeRoute CRs.

Resources (all gated on edge.enabled)

  • edge-deployment.yaml — two containers (agent edge + Envoy), unprivileged (runAsNonRoot, drop ALL caps, readOnlyRootFilesystem), a shared emptyDir xDS socket, the csi.spiffe.io workload socket mounted in both (registrar mTLS + identity for the agent; SDS for Envoy), and a pod-local empty store. Envoy readiness rides the /aether/readyz health_check filter; standard RollingUpdate + readiness gate (no hot-restart supervisor — nothing node-local to preserve).
  • edge-configmap.yaml — Envoy bootstrap: ADS over the agent_xds UDS, a static spire_agent SDS cluster (the SPIRE Workload API socket — proxy.SpireAgentSDSClusterName), optional otel_collector sink, and a fixed_heap overload ladder (the unprivileged edge could use cgroup_memory, but fixed_heap keeps parity and avoids cgroup-layout assumptions).
  • edge-service.yaml — LoadBalancer (configurable type/port/annotations) on the edge HTTP port.
  • edge-rbac.yaml — namespaced Role/RoleBinding for the EdgeRoute watch (get/list/watch edgeroutes + status), scoped to the watched namespace.
  • edge-clusterspiffeid.yaml — optional ClusterSPIFFEID so SPIRE issues the edge pod its SVID (gated on spire.enabled + className), mirroring the controller.
  • Edge ServiceAccount, _helpers.tpl entries, and an edge: values block. agent edge gains --mounted-registry-dir (pod-local emptyDir default). Chart 0.6.0 → 0.7.0.

Notes

  • The edge keys its xDS node id on --proxy-id=$(POD_NAME), matching Envoy --service-node $(POD_NAME) (one agent ↔ one Envoy per pod).
  • No leader election (each edge pod runs its own control plane), so no Lease RBAC.

Verification

helm template renders cleanly with edge.enabled on and off; the bootstrap carries agent_xds + spire_agent (+ otel_collector) clusters; the ClusterSPIFFEID template unescapes correctly. Agent builds; make format and scripts/check-chart-version-bump.sh pass.

Follow-ups (stacked)

  • PR4: downstream TLS termination (k8s TLS Secret, file SDS).
  • PR5: talos e2e.

🤖 Generated with Claude Code

…, SPIRE ID

Add the edge (north-south ingress) gateway to charts/aether behind edge.enabled
(default off): an unprivileged Deployment running plain Envoy + an `agent edge`
sidecar that serves it xDS over a pod-local socket.

- edge-deployment.yaml: 2 containers (agent edge + Envoy), unprivileged
  (runAsNonRoot, drop ALL caps, readOnlyRootFilesystem), shared emptyDir xDS
  socket, csi.spiffe.io workload socket in both (registrar mTLS/identity for the
  agent, SDS for Envoy), empty pod-local store. Envoy readiness rides the
  /aether/readyz health_check filter; standard RollingUpdate + readiness gate
  (no hot-restart supervisor).
- edge-configmap.yaml: Envoy bootstrap — ADS over the agent_xds UDS, a static
  spire_agent SDS cluster (SPIRE Workload API socket; proxy.SpireAgentSDSClusterName),
  optional otel_collector sink, fixed_heap overload ladder.
- edge-service.yaml: LoadBalancer (configurable) on the edge HTTP port.
- edge-rbac.yaml: namespaced Role/RoleBinding for the EdgeRoute watch (get/list/
  watch edgeroutes + status), scoped to the watched namespace.
- edge-clusterspiffeid.yaml: optional ClusterSPIFFEID so SPIRE issues the edge
  pod its SVID (gated on spire.enabled + className), mirroring the controller.
- edge serviceaccount, helpers, and an `edge:` values block. agent `edge` gains
  --mounted-registry-dir (pod-local emptyDir default). aether chart 0.6.0 -> 0.7.0.

Renders clean (helm template, edge.enabled on/off); agent builds; format/lint pass.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Pihqn5RmVPhV9HTdBnqbvY
@bpalermo
bpalermo merged commit 8310aa7 into main Jun 19, 2026
14 checks passed
@bpalermo
bpalermo deleted the feat/edge-chart branch June 19, 2026 16:14
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