yugabytedb-k8s-submarinerlisted
Install: claude install-skill srinivasa-vasu/agent-skills
# YugabyteDB xCluster over Submariner
Two Kubernetes clusters (`s1` = source, `s2` = target) joined by Submariner. Each cluster runs its
**own** universe. Submariner gives pod-to-pod routing between the clusters through a gateway
node on each side, and Lighthouse publishes exported services under `clusterset.local`. xCluster
needs both: target tservers pull changes straight from source tservers, so every source pod
address must be resolvable and routable from the target.
```
kind-s1 (pods 10.30/16, svc 10.130/16) kind-s2 (pods 10.40/16, svc 10.140/16)
broker (submariner-k8s-broker ns)
gateway: s1-worker <════ IPsec / WireGuard / VXLAN tunnel ════> gateway: s2-worker
yb-master-0.s1.yb-masters.<ns>.svc.clusterset.local <— Lighthouse —> yb-master-0.s2...
yb-tserver-0.s1.yb-tservers.<ns>.svc.clusterset.local yb-tserver-0.s2...
source universe ─────────────── xCluster ───────────────> target universe
```
Bundled files (paths relative to this skill):
| File | Purpose |
|---|---|
| `assets/kind-s1.yaml`, `assets/kind-s2.yaml` | kind clusters (default kindnet CNI), unique pod/service CIDRs, one worker for the gateway |
| `scripts/submariner-up.sh` | Creates both clusters, deploys the broker, labels gateways, joins both clusters (idempotent) |
| `assets/rp-filter-ds.yaml` | DaemonSet that keeps `rp_filter` loose on every node (invariant 8) |
| `assets/values-s1.yaml`, `assets/values-s2.yaml` | yugabyte Helm values for each