Skip to content

Agent Mesh

kind: keep sam-nodes off the router worker; same-node hostPort dials fail enrollment

Tomas Tormo41a7a91f8749
diff --git a/development/kind/sam-node.values.yaml b/development/kind/sam-node.values.yaml
index 9c421fcc..edf92310 100644
--- a/development/kind/sam-node.values.yaml
+++ b/development/kind/sam-node.values.yaml
@@ -2,3 +2,14 @@
# values on top: helm install <name> charts/sam-node -f this-file -f <example>/values.yaml
controlPlaneUrl: http://sam-mesh-control-plane:8080
extraArgs: ["--discovery-interval=200ms"]
+
+# Keep nodes off the router's worker: a pod dialing its own node's
+# hostPort 4501 trips kind's portmap hairpin hole and enrollment fails.
+affinity:
+ nodeAffinity:
+ requiredDuringSchedulingIgnoredDuringExecution:
+ nodeSelectorTerms:
+ - matchExpressions:
+ - key: sam-role
+ operator: NotIn
+ values: ["control-plane"]