forked from admin/ansible
Compare commits
35
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eb851d9b1d | ||
|
|
c719f6ab8d | ||
|
|
6e6f9c67fc | ||
|
|
77b3cc2c08 | ||
|
|
d011648e56 | ||
|
|
c22cadc48b | ||
|
|
2fa05da943 | ||
|
|
3406491dcc | ||
|
|
7a08d4d022 | ||
|
|
6e9a998eba | ||
|
|
ef4af24c1e | ||
|
|
f80a524d33 | ||
|
|
faa3e32a53 | ||
|
|
e6d184bd95 | ||
|
|
d097862c81 | ||
|
|
b2e85b686c | ||
|
|
932be82ae6 | ||
|
|
953e4dcba7 | ||
|
|
81e0641ab1 | ||
|
|
8f71c723fb | ||
|
|
7fed0c08cd | ||
|
|
4b8ece95c0 | ||
|
|
0734adc229 | ||
|
|
8ecc6f0424 | ||
|
|
4ab39982d1 | ||
|
|
b5b94b2eee | ||
|
|
bf6b86302f | ||
|
|
1e9d33485d | ||
|
|
d5b1a23bcb | ||
|
|
e94ea37e85 | ||
|
|
c0d53b709c | ||
|
|
0366a78a96 | ||
|
|
c13e9d2ce7 | ||
|
|
020a5092a0 | ||
|
|
5a36921f3b |
@@ -0,0 +1,47 @@
|
||||
name: release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag:
|
||||
description: 'Image tag (e.g. auto-<sha>)'
|
||||
required: false
|
||||
default: latest
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: log into Gitea Packages
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: gitea.rudolf.keenetic.link
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
- name: resolve version
|
||||
id: version
|
||||
run: |
|
||||
if [ -n "${{ inputs.tag }}" ] && [ "${{ inputs.tag }}" != "latest" ]; then
|
||||
echo "VERSION=${{ inputs.tag }}" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "VERSION=${GITHUB_REF_NAME##*/}" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
echo "VERSION=$VERSION"
|
||||
|
||||
- name: build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: connectivity_tester
|
||||
file: connectivity_tester/Dockerfile
|
||||
push: true
|
||||
tags: |
|
||||
gitea.rudolf.keenetic.link/hermes/connectivity_tester:${{ steps.version.outputs.VERSION }}
|
||||
gitea.rudolf.keenetic.link/hermes/connectivity_tester:latest
|
||||
@@ -0,0 +1,12 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
WORKDIR /app
|
||||
COPY . /app/
|
||||
|
||||
RUN pip install --no-cache-dir docker==7.1.0
|
||||
|
||||
ENV PYTHONUNBUFFERED=1 \
|
||||
PERIOD_SECONDS=600 \
|
||||
CHECK_TIMEOUT_S=3
|
||||
|
||||
CMD ["python", "-m", "app"]
|
||||
@@ -0,0 +1,276 @@
|
||||
"""Connectivity tester.
|
||||
|
||||
For every configured overlay network the container attaches itself, runs
|
||||
TCP checks against its endpoints, then detaches. Endpoints marked with
|
||||
``proxy=(host, port)`` are probed through that HTTP proxy (CONNECT). After
|
||||
each round a final loop checks PUBLIC_SERVICES. Cross-validation:
|
||||
- service reachable but not in map -> ERROR 'LEAK-UNEXPECTED'
|
||||
- service in map but unreachable -> ERROR 'MISSING-EXPECTED'
|
||||
- global service not in any map -> WARNING 'GLOBAL-UNCOVERED'
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
import logging
|
||||
import os
|
||||
import socket
|
||||
import sys
|
||||
import time
|
||||
from typing import Iterable, List, Set, Tuple
|
||||
|
||||
import docker
|
||||
from docker.models.containers import Container
|
||||
from docker.models.networks import Network
|
||||
|
||||
from network_map import Endpoint, GLOBAL_SERVICES, NEGATIVE, NETWORK_MAP, PUBLIC_SERVICES
|
||||
|
||||
LOG = logging.getLogger("connectivity-tester")
|
||||
|
||||
FALLBACK_TCP_TIMEOUT_S = 3.0
|
||||
HTTP_CONNECT_TIMEOUT_S = 5.0
|
||||
|
||||
|
||||
def _socket_path() -> str:
|
||||
return os.environ.get("DOCKER_SOCKET", "/var/run/docker.sock")
|
||||
|
||||
|
||||
def _self_container(client: docker.DockerClient) -> Container:
|
||||
hostname = socket.gethostname()
|
||||
for c in client.containers.list():
|
||||
cn = c.name.lstrip("/")
|
||||
hn = c.attrs.get("Config", {}).get("Hostname", "")
|
||||
if hostname == cn or hostname == hn or hostname[:12] == c.id[:12]:
|
||||
return c
|
||||
candidates = [c for c in client.containers.list() if hostname[:12] == c.id]
|
||||
if len(candidates) == 1:
|
||||
return candidates[0]
|
||||
raise RuntimeError(f"self container not found for hostname={hostname}")
|
||||
|
||||
|
||||
def _swarm_networks_for(client: docker.DockerClient,
|
||||
names: Iterable[str]) -> dict:
|
||||
out = {}
|
||||
by_name = {n.name: n for n in client.networks.list()}
|
||||
for name in names:
|
||||
net = by_name.get(name)
|
||||
if net is not None and net.attrs.get("Scope") == "swarm":
|
||||
out[name] = net
|
||||
return out
|
||||
|
||||
|
||||
def _attach(client: docker.DockerClient, container: Container,
|
||||
network: Network) -> bool:
|
||||
current = (container.attrs.get("NetworkSettings", {}) or {}).get("Networks", {})
|
||||
if network.name in current:
|
||||
return False
|
||||
try:
|
||||
network.connect(container, aliases=["connectivity-tester",
|
||||
socket.gethostname()])
|
||||
return True
|
||||
except Exception as exc:
|
||||
if "already exists" in str(exc).lower():
|
||||
return False
|
||||
raise
|
||||
|
||||
|
||||
def _detach(client: docker.DockerClient, container: Container,
|
||||
network: Network) -> None:
|
||||
try:
|
||||
network.disconnect(container, force=True)
|
||||
except Exception as exc:
|
||||
if "not found" in str(exc).lower():
|
||||
return
|
||||
raise
|
||||
|
||||
|
||||
async def _tcp_probe(host: str, port: int, timeout: float) -> Tuple[bool, str]:
|
||||
try:
|
||||
fut = asyncio.open_connection(host=host, port=port)
|
||||
reader, writer = await asyncio.wait_for(fut, timeout=timeout)
|
||||
writer.close()
|
||||
try:
|
||||
await writer.wait_closed()
|
||||
except Exception:
|
||||
pass
|
||||
return True, "tcp ok"
|
||||
except asyncio.TimeoutError:
|
||||
return False, "timeout"
|
||||
except OSError as exc:
|
||||
return False, f"{type(exc).__name__}: {exc}"
|
||||
|
||||
|
||||
async def _proxy_connect(endpoint: Endpoint, timeout: float) -> Tuple[bool, str]:
|
||||
if endpoint.proxy is None:
|
||||
return await _tcp_probe(endpoint.name, endpoint.port, timeout=timeout)
|
||||
proxy_host, proxy_port = endpoint.proxy
|
||||
target = endpoint.name
|
||||
target_port = endpoint.port
|
||||
try:
|
||||
fut = asyncio.open_connection(host=proxy_host, port=proxy_port)
|
||||
reader, writer = await asyncio.wait_for(fut, timeout=timeout)
|
||||
req = (
|
||||
f"CONNECT {target}:{target_port} HTTP/1.1\r\n"
|
||||
f"Host: {target}:{target_port}\r\n\r\n"
|
||||
)
|
||||
writer.write(req.encode("ascii"))
|
||||
await writer.drain()
|
||||
status_line = await asyncio.wait_for(reader.readline(),
|
||||
timeout=timeout)
|
||||
if not status_line.startswith(b"HTTP/") or b" 200 " not in status_line:
|
||||
writer.close()
|
||||
try:
|
||||
await writer.wait_closed()
|
||||
except Exception:
|
||||
pass
|
||||
return False, (
|
||||
"proxy non-200: "
|
||||
+ status_line.strip().decode(errors="replace")
|
||||
)
|
||||
while True:
|
||||
line = await asyncio.wait_for(reader.readline(), timeout=timeout)
|
||||
if line in (b"\r\n", b"", b"\n"):
|
||||
break
|
||||
writer.close()
|
||||
try:
|
||||
await writer.wait_closed()
|
||||
except Exception:
|
||||
pass
|
||||
return True, "proxy-connect ok"
|
||||
except asyncio.TimeoutError:
|
||||
return False, "timeout"
|
||||
except OSError as exc:
|
||||
return False, f"{type(exc).__name__}: {exc}"
|
||||
|
||||
|
||||
async def _check_endpoint(endpoint: Endpoint, timeout: float) -> bool:
|
||||
if endpoint.proxy is not None:
|
||||
ok, detail = await _proxy_connect(endpoint, timeout)
|
||||
else:
|
||||
ok, detail = await _tcp_probe(endpoint.name, endpoint.port,
|
||||
timeout=timeout)
|
||||
label = f"{endpoint.name}:{endpoint.port}"
|
||||
src = f"via {endpoint.proxy}" if endpoint.proxy else "direct"
|
||||
if ok:
|
||||
LOG.info("PASS %s %s %s", label, src, detail)
|
||||
else:
|
||||
LOG.error("FAIL %s %s %s", label, src, detail)
|
||||
return ok
|
||||
|
||||
|
||||
async def _check_network(network_name: str,
|
||||
endpoints: List[Endpoint],
|
||||
timeout: float) -> Tuple[Set[Endpoint], Set[Endpoint]]:
|
||||
reachable: Set[Endpoint] = set()
|
||||
unreachable: Set[Endpoint] = set()
|
||||
for ep in endpoints:
|
||||
ok = await _check_endpoint(ep, timeout)
|
||||
(reachable if ok else unreachable).add(ep)
|
||||
return reachable, unreachable
|
||||
|
||||
|
||||
def _cross_validate(network_name: str,
|
||||
mapped: List[Endpoint],
|
||||
reachable: Set[Endpoint],
|
||||
unreachable: Set[Endpoint],
|
||||
global_set: Set[Endpoint]) -> None:
|
||||
mapped_set = set(mapped)
|
||||
reachable_global = reachable & global_set
|
||||
for ep in reachable_global - mapped_set:
|
||||
LOG.error("LEAK-UNEXPECTED %s reachable in %s but not in map",
|
||||
f"{ep.name}:{ep.port}", network_name)
|
||||
for ep in mapped_set & unreachable:
|
||||
LOG.error("MISSING-EXPECTED %s unreachable in %s but listed in map",
|
||||
f"{ep.name}:{ep.port}", network_name)
|
||||
for ep in mapped_set & reachable:
|
||||
LOG.info("OK-MAPPED %s ok in %s", f"{ep.name}:{ep.port}", network_name)
|
||||
for ep in mapped_set - reachable - unreachable:
|
||||
LOG.warning("NOT-CHECKED %s in map for %s",
|
||||
f"{ep.name}:{ep.port}", network_name)
|
||||
|
||||
|
||||
def _consistency_audit(net_names: List[str]) -> None:
|
||||
flat: Set[Endpoint] = set()
|
||||
for n in net_names:
|
||||
flat.update(NETWORK_MAP.get(n, []))
|
||||
covered = flat | set(PUBLIC_SERVICES)
|
||||
all_global = set(GLOBAL_SERVICES)
|
||||
uncovered = all_global - covered
|
||||
if uncovered:
|
||||
LOG.warning("GLOBAL-UNCOVERED %s not present in any map",
|
||||
sorted(f"{e.name}:{e.port}" for e in uncovered))
|
||||
|
||||
|
||||
async def _check_negative(endpoints: List[Endpoint],
|
||||
timeout: float) -> int:
|
||||
leaks = 0
|
||||
for ep in endpoints:
|
||||
ok = await _tcp_probe(ep.name, ep.port, timeout=timeout)
|
||||
if ok:
|
||||
LOG.error("LEAK %s:%d reachable but must NOT be",
|
||||
ep.name, ep.port)
|
||||
leaks += 1
|
||||
else:
|
||||
LOG.info("OK-NEG %s:%d blocked", ep.name, ep.port)
|
||||
return leaks
|
||||
|
||||
|
||||
async def main() -> int:
|
||||
logging.basicConfig(
|
||||
level=logging.INFO,
|
||||
format="%(asctime)s %(levelname)s %(message)s",
|
||||
stream=sys.stdout,
|
||||
)
|
||||
period = int(os.environ.get("PERIOD_SECONDS", "600"))
|
||||
timeout = float(os.environ.get("CHECK_TIMEOUT_S", "3"))
|
||||
LOG.info("starting; period=%ds timeout=%.1fs", period, timeout)
|
||||
|
||||
client = docker.DockerClient(base_url="unix://" + _socket_path())
|
||||
self_container = _self_container(client)
|
||||
|
||||
nets = _swarm_networks_for(client, NETWORK_MAP.keys())
|
||||
planned = list(NETWORK_MAP.keys())
|
||||
LOG.info("configured networks: %d, present in swarm: %d",
|
||||
len(planned), len(nets))
|
||||
for n in nets:
|
||||
LOG.info("plan network: %s", n)
|
||||
|
||||
_consistency_audit(planned)
|
||||
|
||||
global_set: Set[Endpoint] = set(GLOBAL_SERVICES)
|
||||
|
||||
while True:
|
||||
started = time.monotonic()
|
||||
try:
|
||||
for net_name, net in nets.items():
|
||||
eps_in_map: List[Endpoint] = [
|
||||
e for e in NETWORK_MAP[net_name] if e.proxy is None
|
||||
]
|
||||
LOG.info("--- round begin, attaching to %s (%d endpoints) ---",
|
||||
net_name, len(eps_in_map))
|
||||
_attach(client, self_container, net)
|
||||
try:
|
||||
reachable, unreachable = await _check_network(
|
||||
net_name, eps_in_map, timeout)
|
||||
_cross_validate(net_name, eps_in_map,
|
||||
reachable, unreachable, global_set)
|
||||
finally:
|
||||
_detach(client, self_container, net)
|
||||
LOG.info("--- round end on %s ---", net_name)
|
||||
|
||||
LOG.info("--- public checks (%d endpoints) ---",
|
||||
len(PUBLIC_SERVICES))
|
||||
for ep in PUBLIC_SERVICES:
|
||||
await _check_endpoint(ep, max(timeout, HTTP_CONNECT_TIMEOUT_S))
|
||||
|
||||
LOG.info("--- negative checks (%d endpoints) ---", len(NEGATIVE))
|
||||
await _check_negative(NEGATIVE, timeout)
|
||||
except Exception:
|
||||
LOG.exception("round crashed")
|
||||
|
||||
elapsed = time.monotonic() - started
|
||||
sleep_for = max(0.0, period - elapsed)
|
||||
await asyncio.sleep(sleep_for)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
asyncio.run(main())
|
||||
@@ -0,0 +1,122 @@
|
||||
from dataclasses import dataclass
|
||||
from typing import Dict, List, Optional, Tuple
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class Endpoint:
|
||||
name: str
|
||||
port: int
|
||||
proxy: Optional[Tuple[str, int]] = None
|
||||
tls: bool = False
|
||||
|
||||
|
||||
SWARM_NETWORKS = (
|
||||
"hermes_infra_hermes_proxy",
|
||||
"hermes_infra_squid_egress",
|
||||
"hermes_infra_admin",
|
||||
"hermes_infra_default",
|
||||
"hermes_hermes",
|
||||
"gitea_gitea",
|
||||
"gmail_mcp_default",
|
||||
"immich_default",
|
||||
"torrserv_proxy_default",
|
||||
"docker_socket_proxy_hermes_proxy",
|
||||
"connectivity_tester_default",
|
||||
"brencher_brencher-net",
|
||||
"brencher2_brencher-net",
|
||||
)
|
||||
|
||||
|
||||
SQUID_PROXY: Tuple[str, int] = ("squid", 3128)
|
||||
|
||||
|
||||
NETWORK_MAP: Dict[str, List[Endpoint]] = {
|
||||
"hermes_infra_hermes_proxy": [
|
||||
Endpoint("hermes-gateway", 8000),
|
||||
Endpoint("hermes-ui", 8087),
|
||||
Endpoint("squid", 3128),
|
||||
Endpoint("docker_socket_proxy", 2375),
|
||||
Endpoint("brencher-state-proxy", 80),
|
||||
],
|
||||
"hermes_infra_squid_egress": [
|
||||
Endpoint("squid", 3128),
|
||||
],
|
||||
"hermes_infra_admin": [
|
||||
Endpoint("sarg", 80),
|
||||
],
|
||||
"hermes_infra_default": [
|
||||
Endpoint("hermes-ui", 8087),
|
||||
],
|
||||
"hermes_hermes": [
|
||||
Endpoint("hermes-agent", 8000),
|
||||
Endpoint("hermes-gateway", 8000),
|
||||
],
|
||||
"gitea_gitea": [
|
||||
Endpoint("gitea-server", 3000),
|
||||
Endpoint("act_runner", 8088),
|
||||
Endpoint("cache_server", 37051),
|
||||
],
|
||||
"gmail_mcp_default": [
|
||||
Endpoint("gmail-mcp-server", 8000),
|
||||
Endpoint("telegram-mcp-server", 8000),
|
||||
],
|
||||
"immich_default": [
|
||||
Endpoint("immich-server", 2283),
|
||||
Endpoint("immich-database", 5432),
|
||||
Endpoint("immich-redis", 6379),
|
||||
Endpoint("immich-machine-learning", 8501),
|
||||
],
|
||||
"torrserv_proxy_default": [
|
||||
Endpoint("fileserver", 8000),
|
||||
Endpoint("reverseproxy", 8080),
|
||||
],
|
||||
"docker_socket_proxy_hermes_proxy": [
|
||||
Endpoint("hermes-gateway", 8000),
|
||||
],
|
||||
"connectivity_tester_default": [
|
||||
Endpoint("connectivity-tester", 8765),
|
||||
],
|
||||
"brencher_brencher-net": [
|
||||
Endpoint("brencher-backend", 5000),
|
||||
],
|
||||
"brencher2_brencher-net": [
|
||||
Endpoint("brencher-backend", 5000),
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
PUBLIC_SERVICES: List[Endpoint] = [
|
||||
Endpoint("gitea.rudolf.keenetic.link", 443, proxy=SQUID_PROXY, tls=True),
|
||||
Endpoint("gitea.rudolf.keenetic.link", 80, proxy=SQUID_PROXY),
|
||||
Endpoint("registry.rudolf.keenetic.link", 443, proxy=SQUID_PROXY, tls=True),
|
||||
Endpoint("registry.rudolf.keenetic.link", 5000, proxy=SQUID_PROXY),
|
||||
Endpoint("deb.debian.org", 80, proxy=SQUID_PROXY),
|
||||
Endpoint("deb.debian.org", 443, proxy=SQUID_PROXY, tls=True),
|
||||
Endpoint("github.com", 443, proxy=SQUID_PROXY, tls=True),
|
||||
Endpoint("githubusercontent.com", 443, proxy=SQUID_PROXY, tls=True),
|
||||
Endpoint("telegram.org", 443, proxy=SQUID_PROXY, tls=True),
|
||||
Endpoint("t.me", 443, proxy=SQUID_PROXY, tls=True),
|
||||
Endpoint("minimax.io", 443, proxy=SQUID_PROXY, tls=True),
|
||||
Endpoint("minimax.chat", 443, proxy=SQUID_PROXY, tls=True),
|
||||
Endpoint("minimax.com", 443, proxy=SQUID_PROXY, tls=True),
|
||||
Endpoint("pypi.org", 443, proxy=SQUID_PROXY, tls=True),
|
||||
Endpoint("google.com", 443, proxy=SQUID_PROXY, tls=True),
|
||||
Endpoint("cloudflare.com", 443, proxy=SQUID_PROXY, tls=True),
|
||||
Endpoint("wikipedia.org", 443, proxy=SQUID_PROXY, tls=True),
|
||||
Endpoint("mozilla.org", 443, proxy=SQUID_PROXY, tls=True),
|
||||
Endpoint("1.1.1.1", 443, proxy=SQUID_PROXY, tls=True),
|
||||
Endpoint("8.8.8.8", 53),
|
||||
Endpoint("8.8.4.4", 53),
|
||||
]
|
||||
|
||||
|
||||
GLOBAL_SERVICES: List[Endpoint] = sorted(
|
||||
{ep for eps in NETWORK_MAP.values() for ep in eps} | set(PUBLIC_SERVICES),
|
||||
key=lambda e: (e.name, e.port),
|
||||
)
|
||||
|
||||
|
||||
NEGATIVE: List[Endpoint] = [
|
||||
Endpoint("169.254.169.254", 80),
|
||||
Endpoint("metadata.google.internal", 80),
|
||||
]
|
||||
@@ -0,0 +1,25 @@
|
||||
services:
|
||||
connectivity-tester:
|
||||
image: gitea.rudolf.keenetic.link/hermes/connectivity_tester:${version}
|
||||
hostname: connectivity-tester
|
||||
user: "0:0"
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "test -S /var/run/docker.sock"]
|
||||
interval: 60s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
deploy:
|
||||
mode: global
|
||||
resources:
|
||||
limits:
|
||||
memory: 128M
|
||||
pids: 64
|
||||
reservations:
|
||||
memory: 64M
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
delay: 10s
|
||||
max_attempts: 3
|
||||
@@ -1,37 +0,0 @@
|
||||
# Architecture diagram
|
||||
|
||||

|
||||
|
||||
Snapshot: 2026-08-27. Light/dark theme via `prefers-color-scheme`.
|
||||
|
||||
## What
|
||||
|
||||
- **Left column:** external (Client, Tailscale, Keenetic) + lan + all 22 overlay networks. One block = one network.
|
||||
- **Right column:** all stacks. Inside each stack — its nodes (containers).
|
||||
|
||||
## How to update
|
||||
|
||||
1. Re-fetch live state from the cluster:
|
||||
```
|
||||
curl http://docker_socket_proxy:2375/networks | python3 -m json.tool > /tmp/nets.json
|
||||
curl http://docker_socket_proxy:2375/services | python3 -m json.tool > /tmp/services.json
|
||||
curl http://docker_socket_proxy:2375/tasks?filters='{"desired-state":"running"}' > /tmp/tasks.json
|
||||
```
|
||||
2. Compare counts/labels against `standalone-adaptive.svg`. Update blocks that changed.
|
||||
3. For new stacks/services: add a stack rect in the right column + 1+ node rects inside.
|
||||
4. For new networks: add a network block in the left column at the matching height.
|
||||
|
||||
Convention:
|
||||
- `class="net-fill"` — overlay network (amber border)
|
||||
- `class="net-external-fill"` — Keenetic/lan (slate)
|
||||
- `class="ext-client-fill"` — Client (violet border)
|
||||
- `class="stack-fill"` — running stack (cyan border)
|
||||
- `class="node-fill"` — running container
|
||||
- `class="node-dead"` — dead/disabled (red dashed)
|
||||
- IPs in node title reflect current state — refresh when IPs change
|
||||
|
||||
## Sources
|
||||
|
||||
- `docker_socket_proxy` (read-only): `/networks`, `/services`, `/tasks`, `/containers/{id}/json`
|
||||
- `admin/ansible` repo: `poc/*/stack-compose.yml` for stack definitions
|
||||
- Gitea admin API: `POST /api/v1/repos/admin/ansible/issues` for tickets about drift
|
||||
@@ -1,253 +0,0 @@
|
||||
# Architecture diagram — full prod map
|
||||
|
||||
> **Snapshot:** 2026-08-27 · sources: `docker_socket_proxy` + gitea admin API
|
||||
>
|
||||
> **Two views:**
|
||||
> - This file — **Mermaid flow** (high-level topology, all elements)
|
||||
> - `standalone-adaptive.svg` — **per-node detail** (IPs, container names)
|
||||
|
||||
```mermaid
|
||||
flowchart LR
|
||||
%% ==================== EXTERNAL ====================
|
||||
subgraph EXT[" "]
|
||||
direction TB
|
||||
Client["Client<br/>tailscale"]:::client
|
||||
Keenetic["Keenetic<br/>DNS · TLS"]:::external
|
||||
Tailscale["Tailscale<br/>subnet router"]:::external
|
||||
lan["lan<br/>192.168.1.0/24"]:::external
|
||||
|
||||
Client -->|https| Tailscale
|
||||
Tailscale --> Keenetic
|
||||
Keenetic -->|TLS term| lan
|
||||
end
|
||||
|
||||
%% ==================== INGRESS / EGRESS ====================
|
||||
subgraph IO[" "]
|
||||
direction TB
|
||||
ingress["ingress<br/>10.0.0.0/24"]:::egress
|
||||
proxy_egress["squid_egress<br/>hermes_proxy<br/>admin"]:::egress
|
||||
nginx_nets["nginx_ingress<br/>nginx_default<br/>(DEAD)"]:::egress
|
||||
|
||||
lan -.->|egress| ingress
|
||||
end
|
||||
|
||||
%% ==================== STACKS (deployed via brencher) ====================
|
||||
subgraph BRENCHER_DEPLOYED["via brencher (PROFILES env)"]
|
||||
direction TB
|
||||
b_gitea["gitea"]:::stack
|
||||
b_hermes["hermes"]:::stack
|
||||
b_hermes_infra["hermes_infra"]:::stack
|
||||
b_immich["immich"]:::stack
|
||||
b_gmail_mcp["gmail_mcp"]:::stack
|
||||
b_torrserv["torrserv_proxy"]:::stack
|
||||
b_brencher2["brencher2<br/>(deploy tool)"]:::deploy
|
||||
end
|
||||
|
||||
ingress --> b_gitea
|
||||
ingress --> b_hermes
|
||||
ingress --> b_hermes_infra
|
||||
ingress --> b_immich
|
||||
ingress --> b_gmail_mcp
|
||||
ingress --> b_torrserv
|
||||
|
||||
proxy_egress -.-> b_hermes_infra
|
||||
|
||||
b_brencher2 -.->|deploys| b_gitea
|
||||
b_brencher2 -.->|deploys| b_hermes
|
||||
b_brencher2 -.->|deploys| b_immich
|
||||
b_brencher2 -.->|deploys| b_hermes_infra
|
||||
b_brencher2 -.->|deploys| b_gmail_mcp
|
||||
b_brencher2 -.->|deploys| b_torrserv
|
||||
|
||||
%% ==================== STACKS (standalone, not via brencher) ====================
|
||||
subgraph STANDALONE["standalone (compose или ручной deploy)"]
|
||||
direction TB
|
||||
s_dsp["docker_socket_proxy"]:::stack
|
||||
s_lampa["lampa-jackett<br/>(compose)"]:::stack
|
||||
s_photosHelper["photosHelper<br/>(DEAD · Replicas: 0)"]:::dead
|
||||
s_nginx["nginx<br/>(DEAD · Replicas: 0)"]:::dead
|
||||
s_registry["registry<br/>(DEAD · Replicas: 0)"]:::dead
|
||||
end
|
||||
|
||||
ingress --> s_dsp
|
||||
ingress --> s_lampa
|
||||
|
||||
%% ==================== ZOMBIE STACKS (volumes only, no services) ====================
|
||||
subgraph ZOMBIE["zombie stacks (volumes orphaned)"]
|
||||
direction TB
|
||||
z_nextcloud["nextcloud<br/>(4 volumes)"]:::dead
|
||||
z_portainer["portainer<br/>(1 volume)"]:::dead
|
||||
z_swarmpit["swarmpit<br/>(1 volume)"]:::dead
|
||||
z_sstp["sstp · softether<br/>(4 volumes)"]:::dead
|
||||
z_test["test<br/>(1 volume)"]:::dead
|
||||
z_torr_cache["torr_cache<br/>(1 volume)"]:::dead
|
||||
z_beszel["beszel-poc<br/>(2 volumes)"]:::dead
|
||||
end
|
||||
|
||||
%% ==================== EPHEMERAL (gitea act_runner jobs) ====================
|
||||
subgraph EPHEMERAL["gitea act_runner ephemeral jobs"]
|
||||
direction TB
|
||||
eph_jobs["~48 exited<br/>ephemeral job pods<br/>(random names)"]:::ephemeral
|
||||
end
|
||||
|
||||
b_gitea -.->|spawns| eph_jobs
|
||||
|
||||
%% ==================== INTERNAL NETS (one per stack) ====================
|
||||
subgraph INTERNAL["internal nets (12)"]
|
||||
direction TB
|
||||
gitea_net["gitea_gitea"]:::internal
|
||||
hermes_net["hermes_hermes"]:::internal
|
||||
hi_net["hermes_infra_default"]:::internal
|
||||
immich_net["immich_default"]:::internal
|
||||
gmail_net["gmail_mcp_default"]:::internal
|
||||
torr_net["torrserv_proxy_default"]:::internal
|
||||
brencher2_nets["brencher2-net +<br/>brencher2_default"]:::internal
|
||||
dsp_net["dsp_default"]:::internal
|
||||
lampa_net["lampa_default"]:::internal
|
||||
|
||||
b_gitea --> gitea_net
|
||||
b_hermes --> hermes_net
|
||||
b_hermes_infra --> hi_net
|
||||
b_immich --> immich_net
|
||||
b_gmail_mcp --> gmail_net
|
||||
b_torrserv --> torr_net
|
||||
b_brencher2 --> brencher2_nets
|
||||
s_dsp --> dsp_net
|
||||
s_lampa --> lampa_net
|
||||
end
|
||||
|
||||
%% ==================== VOLUMES (153 total) ====================
|
||||
subgraph VOLS["volumes (153 total, 18 mounted · 135 orphaned)"]
|
||||
direction TB
|
||||
vol_active["active: gitea_data · immich_* ·<br/>hermes_*_data · brencher_tmp ·<br/>docker_socket_proxy_*_data ·<br/>torrserv_proxy_data · lampa_*"]:::volumes
|
||||
vol_orphaned["orphaned: 119 (no stack) ·<br/>nextcloud · portainer · sstp ·<br/>swarmpit · test · torr_cache ·<br/>beszel-poc · immich_postgres"]:::dead
|
||||
end
|
||||
|
||||
%% ==================== SECRETS / CONFIGS (403 from socket proxy) ====================
|
||||
subgraph SECRETS["secrets & configs (read-only proxy: 403)"]
|
||||
direction TB
|
||||
sec_known["known to exist in gitea app.ini:<br/>LFS_JWT_SECRET · JWT_SECRET ·<br/>SECRET_KEY · INTERNAL_TOKEN"]:::secret
|
||||
sec_hermes["hermes-agent runtime secrets<br/>(gmail creds · telegram token)"]:::secret
|
||||
end
|
||||
|
||||
%% ==================== STYLING ====================
|
||||
classDef client fill:#0f172a,stroke:#a78bfa,color:#ddd6fe
|
||||
classDef external fill:#1e293b,stroke:#94a3b8,color:#cbd5e1
|
||||
classDef egress fill:#052e16,stroke:#22c55e,color:#bbf7d0
|
||||
classDef stack fill:#0c4a6e,stroke:#22d3ee,color:#cffafe
|
||||
classDef dead fill:#1f1717,stroke:#fb7185,color:#fecaca,stroke-dasharray: 4 2
|
||||
classDef deploy fill:#422006,stroke:#fbbf24,color:#fde68a
|
||||
classDef ephemeral fill:#1e1b4b,stroke:#818cf8,color:#c7d2fe,stroke-dasharray: 2 2
|
||||
classDef internal fill:#1e1b4b,stroke:#818cf8,color:#c7d2fe
|
||||
classDef volumes fill:#0f172a,stroke:#475569,color:#cbd5e1
|
||||
classDef secret fill:#0f172a,stroke:#f59e0b,color:#fde68a,stroke-dasharray: 3 2
|
||||
```
|
||||
|
||||
## Полная картина прода
|
||||
|
||||
### 🟢 Running stacks (12)
|
||||
|
||||
**Через `brencher` (PROFILES env):**
|
||||
1. **gitea** — gitea_server + gitea_runner (act_runner для CI)
|
||||
2. **hermes** — hermes-agent + hermes-gateway
|
||||
3. **hermes_infra** — squid + sarg + hermes-ui + hermes-gateway + docker_socket_proxy + brencher-state-proxy
|
||||
4. **immich** — server + database + redis + machine-learning
|
||||
5. **gmail_mcp** — gmail-mcp-server + telegram-mcp-server
|
||||
6. **torrserv_proxy** — reverseproxy + fileserver
|
||||
7. **brencher2** — второй deploy tool (сам себя не деплоит)
|
||||
|
||||
**Standalone (не через brencher):**
|
||||
8. **docker_socket_proxy** — standalone, для hermes-gateway
|
||||
9. **lampa-jackett** — docker-compose, port 9117
|
||||
|
||||
**DEAD services (но стек определён):**
|
||||
10. **photosHelper** (Replicas: 0, 1 volume)
|
||||
11. **nginx** (Replicas: 0, 2 services, 5 volumes)
|
||||
12. **registry** (Replicas: 0, 1 volume)
|
||||
|
||||
### 🟡 Zombie stacks (volumes, но 0 running services)
|
||||
|
||||
Volumes остались после того как сервисы удалили. 4–5 volumes на стек:
|
||||
|
||||
- **nextcloud** (4 volumes · config + данные)
|
||||
- **sstp** (4 volumes · SoftEther VPN, конфиг + logs)
|
||||
- **portainer** (1 volume · swarm UI)
|
||||
- **swarmpit** (1 volume · swarm UI)
|
||||
- **test** (1 volume)
|
||||
- **torr_cache** (1 volume)
|
||||
- **beszel-poc** (2 volumes · monitoring POC)
|
||||
|
||||
### 🟣 Ephemeral: gitea act_runner job pods
|
||||
|
||||
Когда CI job запускается в gitea, `act_runner` создаёт **ephemeral контейнер** со случайным именем (`romantic_wozniak`, `compassionate_goodall` и т.п.). После завершения контейнер остаётся в `exited` state. На текущий момент ~48 таких exited контейнеров.
|
||||
|
||||
Реестр: image `ghcr.io/immich-app/runner-images:ubuntu-latest` (определён в `poc/gitea/config.yaml`).
|
||||
|
||||
### 🔴 Volumes (153 total)
|
||||
|
||||
- **18 mounted** в running контейнеры
|
||||
- **135 orphaned** (либо от zombie-стеков, либо anonymous)
|
||||
|
||||
Основные используемые:
|
||||
- `gitea_data` — критичные данные gitea (NFS на 192.168.1.96:/root/volumes/gitea)
|
||||
- `immich_*` — uploads, model-cache, postgres
|
||||
- `hermes_infra_*_data`, `hermes_hermes_*_data`
|
||||
- `brencher_tmp`, `brencher2_tmp` — git clones
|
||||
- `lampa_jackett_config`
|
||||
- `torrserv_proxy_data`
|
||||
|
||||
### 🔐 Secrets & configs
|
||||
|
||||
`/configs` и `/secrets` через socket-proxy **403** (требуется POST:1). Известные по другим источникам:
|
||||
|
||||
**В gitea `/data/gitea/conf/app.ini`:**
|
||||
- `LFS_JWT_SECRET`
|
||||
- `JWT_SECRET` (oauth2)
|
||||
- `SECRET_KEY`
|
||||
- `INTERNAL_TOKEN`
|
||||
|
||||
**В hermes-agent runtime:**
|
||||
- Gmail API creds (для gmail_mcp server)
|
||||
- Telegram bot token (для telegram_mcp server)
|
||||
|
||||
**Swarm configs** (из `poc/gitea/stack-compose.yml`):
|
||||
- `runner_config` — `config.yaml` для act_runner
|
||||
|
||||
### 🗑️ Dead-overlay сети (сеть есть, контейнеров нет)
|
||||
|
||||
- `nginx_ingress` (10.0.3.0/24) — для nginx-proxy, но nginx Replicas=0
|
||||
- `nginx_default` (10.0.4.0/24) — то же
|
||||
|
||||
Сети **живые** в swarm mesh, но не используются.
|
||||
|
||||
## Что НЕ показывает эта диаграмма
|
||||
|
||||
- Конкретные IP контейнеров (см. `standalone-adaptive.svg`)
|
||||
- Cross-stack сети в деталях (см. SVG)
|
||||
- Точные timestamps exited containers
|
||||
- Полный список 119 orphaned volumes без stack'а
|
||||
|
||||
## Как обновить
|
||||
|
||||
Запусти в этом окружении:
|
||||
|
||||
```bash
|
||||
# Stacks & services
|
||||
curl http://docker_socket_proxy:2375/services | jq -r '.[] | .Spec.Labels["com.docker.stack.namespace"]' | sort -u
|
||||
|
||||
# Volumes per stack
|
||||
curl http://docker_socket_proxy:2375/volumes | jq -r '.Volumes[] | "\(.Name) \(.Labels["com.docker.stack_namespace"] // "no-stack")"'
|
||||
|
||||
# Ephemeral containers (exited)
|
||||
curl http://docker_socket_proxy:2375/containers/json?all=1 | jq '[.[] | select(.State=="exited")] | length'
|
||||
|
||||
# BRENCHER profiles (env var)
|
||||
curl http://docker_socket_proxy:2375/containers/brencher_brencher-backend* 2>/dev/null
|
||||
```
|
||||
|
||||
## Связанные
|
||||
|
||||
- `standalone-adaptive.svg` — per-node detail (IPs, container names)
|
||||
- `admin/ansible#5` — re-deploy hermes_squid
|
||||
- `admin/ansible#6` — pre-create socket_proxy overlay
|
||||
- `admin/ansible#7` — gitea stack deploy / app.ini fix
|
||||
@@ -1,487 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1610 1145" font-family="ui-monospace, SFMono-Regular, monospace" font-size="10">
|
||||
<title>Production architecture · internet / ingress-egress / stacks / internal-nets</title>
|
||||
<desc>
|
||||
4 columns:
|
||||
1. Internet (Client, Tailscale, Keenetic, lan)
|
||||
2. Ingress & egress networks (10)
|
||||
3. Stacks with nodes (12 stacks)
|
||||
4. Internal-only networks (12, paired with their stack's y)
|
||||
</desc>
|
||||
|
||||
<style>
|
||||
.bg { fill: #020617; }
|
||||
.grid-dot { fill: #1e293b; }
|
||||
.title { fill: #e2e8f0; }
|
||||
.col-label { fill: #94a3b8; font-size: 11; font-weight: bold; letter-spacing: 1px; }
|
||||
.net-fill { fill: #422006; fill-opacity: 0.4; stroke: #f59e0b; }
|
||||
.net-text { fill: #fde68a; }
|
||||
.net-sub { fill: #fbbf24; font-size: 8; }
|
||||
.net-external-fill { fill: #1e293b; fill-opacity: 0.5; stroke: #94a3b8; }
|
||||
.net-external-text { fill: #cbd5e1; }
|
||||
.net-io-fill { fill: #052e16; fill-opacity: 0.5; stroke: #22c55e; }
|
||||
.net-io-text { fill: #bbf7d0; }
|
||||
.net-internal-fill { fill: #1e1b4b; fill-opacity: 0.5; stroke: #818cf8; }
|
||||
.net-internal-text { fill: #c7d2fe; }
|
||||
.ext-client-fill { fill: #0f172a; stroke: #a78bfa; }
|
||||
.ext-client-text { fill: #ddd6fe; }
|
||||
.stack-fill { fill: #0c4a6e; fill-opacity: 0.3; stroke: #22d3ee; }
|
||||
.stack-text { fill: #cffafe; font-weight: bold; }
|
||||
.node-fill { fill: #0f172a; stroke: #475569; stroke-width: 1; }
|
||||
.node-text { fill: #cbd5e1; }
|
||||
.arrow-lan { stroke: #f59e0b; fill: none; }
|
||||
.arrow-egress { stroke: #22c55e; fill: none; }
|
||||
.arrow-internal { stroke: #818cf8; fill: none; }
|
||||
.legend-text { fill: #cbd5e1; }
|
||||
.footer { fill: #475569; }
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
.bg { fill: #f8fafc; }
|
||||
.grid-dot { fill: #cbd5e1; }
|
||||
.title { fill: #0f172a; }
|
||||
.col-label { fill: #475569; }
|
||||
.net-fill { fill: #fef3c7; fill-opacity: 0.6; stroke: #b45309; }
|
||||
.net-text { fill: #78350f; }
|
||||
.net-sub { fill: #92400e; }
|
||||
.net-external-fill { fill: #e2e8f0; fill-opacity: 0.7; stroke: #64748b; }
|
||||
.net-external-text { fill: #1e293b; }
|
||||
.net-io-fill { fill: #dcfce7; fill-opacity: 0.6; stroke: #16a34a; }
|
||||
.net-io-text { fill: #14532d; }
|
||||
.net-internal-fill { fill: #e0e7ff; fill-opacity: 0.6; stroke: #4f46e5; }
|
||||
.net-internal-text { fill: #312e81; }
|
||||
.ext-client-fill { fill: #faf5ff; stroke: #7c3aed; }
|
||||
.ext-client-text { fill: #581c87; }
|
||||
.stack-fill { fill: #ecfeff; fill-opacity: 0.4; stroke: #0e7490; }
|
||||
.stack-text { fill: #0c4a6e; }
|
||||
.node-fill { fill: #ffffff; stroke: #94a3b8; }
|
||||
.node-text { fill: #1e293b; }
|
||||
.arrow-lan { stroke: #b45309; }
|
||||
.arrow-egress { stroke: #16a34a; }
|
||||
.arrow-internal { stroke: #4f46e5; }
|
||||
.legend-text { fill: #1e293b; }
|
||||
.footer { fill: #94a3b8; }
|
||||
}
|
||||
</style>
|
||||
|
||||
<defs>
|
||||
<pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse">
|
||||
<circle cx="20" cy="20" r="0.5" class="grid-dot"/>
|
||||
</pattern>
|
||||
<marker id="a-lan" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
|
||||
<path d="M 0 0 L 10 5 L 0 10 z" fill="#f59e0b"/>
|
||||
</marker>
|
||||
<marker id="a-egress" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
|
||||
<path d="M 0 0 L 10 5 L 0 10 z" fill="#22c55e"/>
|
||||
</marker>
|
||||
<marker id="a-internal" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
|
||||
<path d="M 0 0 L 10 5 L 0 10 z" fill="#818cf8"/>
|
||||
</marker>
|
||||
</defs>
|
||||
|
||||
<rect width="1610" height="1145" class="bg"/>
|
||||
<rect width="1610" height="1145" fill="url(#grid)"/>
|
||||
|
||||
<text x="40" y="36" class="title" font-size="18" font-weight="bold">
|
||||
Production architecture · 4 columns
|
||||
</text>
|
||||
|
||||
<!-- ============== COL 1: INTERNET ============== -->
|
||||
<text x="40" y="80" class="col-label">1. INTERNET</text>
|
||||
|
||||
<g>
|
||||
<rect x="40" y="100" width="220" height="50" rx="5" class="ext-client-fill" stroke-width="2"/>
|
||||
<text x="150" y="119" text-anchor="middle" class="ext-client-text" font-size="12" font-weight="bold">Client</text>
|
||||
<text x="150" y="133" text-anchor="middle" class="ext-client-text" font-size="8">из tailscale-сети</text>
|
||||
<text x="150" y="144" text-anchor="middle" class="ext-client-text" font-size="7">100.x.x.x</text>
|
||||
</g>
|
||||
|
||||
<g>
|
||||
<rect x="40" y="160" width="220" height="100" rx="5" class="net-external-fill" stroke-width="2"/>
|
||||
<text x="150" y="178" text-anchor="middle" class="net-external-text" font-size="11" font-weight="bold">Keenetic router</text>
|
||||
<text x="150" y="192" text-anchor="middle" class="net-external-text" font-size="8">192.168.1.1 · DNS · TLS term</text>
|
||||
<text x="150" y="205" text-anchor="middle" class="net-external-text" font-size="7">.rudolf.keenetic.link → 192.168.1.96:443</text>
|
||||
<text x="150" y="226" text-anchor="middle" class="net-external-text" font-size="10" font-weight="bold">Tailscale subnet</text>
|
||||
<text x="150" y="240" text-anchor="middle" class="net-external-text" font-size="7">announces 192.168.1.0/24</text>
|
||||
</g>
|
||||
|
||||
<g>
|
||||
<rect x="40" y="270" width="220" height="50" rx="5" class="net-external-fill" stroke-width="2"/>
|
||||
<text x="150" y="288" text-anchor="middle" class="net-external-text" font-size="12" font-weight="bold">lan</text>
|
||||
<text x="150" y="303" text-anchor="middle" class="net-external-text" font-size="8">192.168.1.0/24 · физическая LAN</text>
|
||||
</g>
|
||||
|
||||
<!-- ============== COL 2: INGRESS / EGRESS ============== -->
|
||||
<text x="290" y="80" class="col-label">2. INGRESS / EGRESS</text>
|
||||
<text x="290" y="338" class="col-label" font-size="9">могут выйти в интернет</text>
|
||||
<g>
|
||||
<rect x="290" y="345" width="220" height="30" rx="4" class="net-io-fill"/>
|
||||
<text x="298" y="358" class="net-io-text" font-size="10">ingress</text>
|
||||
<text x="502" y="358" text-anchor="end" class="net-sub">10.0.0.0/24</text>
|
||||
<text x="298" y="369" class="net-sub" font-size="7">swarm routing mesh</text>
|
||||
</g>
|
||||
<g>
|
||||
<rect x="290" y="378" width="220" height="30" rx="4" class="net-io-fill"/>
|
||||
<text x="298" y="391" class="net-io-text" font-size="10">nginx_ingress</text>
|
||||
<text x="502" y="391" text-anchor="end" class="net-sub">10.0.3.0/24</text>
|
||||
<text x="298" y="402" class="net-sub" font-size="7">nginx-proxy · dead</text>
|
||||
</g>
|
||||
<g>
|
||||
<rect x="290" y="411" width="220" height="30" rx="4" class="net-io-fill"/>
|
||||
<text x="298" y="424" class="net-io-text" font-size="10">nginx_default</text>
|
||||
<text x="502" y="424" text-anchor="end" class="net-sub">10.0.4.0/24</text>
|
||||
<text x="298" y="435" class="net-sub" font-size="7">nginx-proxy · dead</text>
|
||||
</g>
|
||||
<g>
|
||||
<rect x="290" y="444" width="220" height="30" rx="4" class="net-io-fill"/>
|
||||
<text x="298" y="457" class="net-io-text" font-size="10">hermes_infra_squid_egress</text>
|
||||
<text x="502" y="457" text-anchor="end" class="net-sub">10.0.12.0/24</text>
|
||||
<text x="298" y="468" class="net-sub" font-size="7">squid</text>
|
||||
</g>
|
||||
<g>
|
||||
<rect x="290" y="477" width="220" height="30" rx="4" class="net-io-fill"/>
|
||||
<text x="298" y="490" class="net-io-text" font-size="10">hermes_infra_admin</text>
|
||||
<text x="502" y="490" text-anchor="end" class="net-sub">10.0.14.0/24</text>
|
||||
<text x="298" y="501" class="net-sub" font-size="7">admin overlay</text>
|
||||
</g>
|
||||
<g>
|
||||
<rect x="290" y="510" width="220" height="30" rx="4" class="net-io-fill"/>
|
||||
<text x="298" y="523" class="net-io-text" font-size="10">hermes_infra_hermes_proxy</text>
|
||||
<text x="502" y="523" text-anchor="end" class="net-sub">10.0.15.0/24</text>
|
||||
<text x="298" y="534" class="net-sub" font-size="7">hermes</text>
|
||||
</g>
|
||||
<g>
|
||||
<rect x="290" y="543" width="220" height="30" rx="4" class="net-io-fill"/>
|
||||
<text x="298" y="556" class="net-io-text" font-size="10">docker_socket_proxy_socket_proxy</text>
|
||||
<text x="502" y="556" text-anchor="end" class="net-sub">10.0.16.0/24</text>
|
||||
<text x="298" y="567" class="net-sub" font-size="7">docker socket</text>
|
||||
</g>
|
||||
<g>
|
||||
<rect x="290" y="576" width="220" height="30" rx="4" class="net-io-fill"/>
|
||||
<text x="298" y="589" class="net-io-text" font-size="10">docker_socket_proxy_admin</text>
|
||||
<text x="502" y="589" text-anchor="end" class="net-sub">10.0.18.0/24</text>
|
||||
<text x="298" y="600" class="net-sub" font-size="7">admin overlay</text>
|
||||
</g>
|
||||
<g>
|
||||
<rect x="290" y="609" width="220" height="30" rx="4" class="net-io-fill"/>
|
||||
<text x="298" y="622" class="net-io-text" font-size="10">docker_socket_proxy_hermes_proxy</text>
|
||||
<text x="502" y="622" text-anchor="end" class="net-sub">10.0.19.0/24</text>
|
||||
<text x="298" y="633" class="net-sub" font-size="7">hermes</text>
|
||||
</g>
|
||||
<g>
|
||||
<rect x="290" y="642" width="220" height="30" rx="4" class="net-io-fill"/>
|
||||
<text x="298" y="655" class="net-io-text" font-size="10">docker_socket_proxy_squid_egress</text>
|
||||
<text x="502" y="655" text-anchor="end" class="net-sub">10.0.20.0/24</text>
|
||||
<text x="298" y="666" class="net-sub" font-size="7">squid</text>
|
||||
</g>
|
||||
<!-- ============== COL 3: STACKS & PODS ============== -->
|
||||
<text x="540" y="80" class="col-label">STACKS & PODS</text>
|
||||
<g><rect x="540" y="100" width="760" height="66" rx="8" class="stack-fill"/>
|
||||
<text x="550" y="116" class="stack-text" font-size="12">gitea</text>
|
||||
<g class="node-fill"><rect x="550" y="127" width="740" height="15" rx="3"/>
|
||||
<text x="558" y="134" class="node-text" font-size="9">gitea_server.1.fx8lrhxza6s7xhjeqr46oiioa</text>
|
||||
<text x="558" y="144" class="node-text" font-size="7" fill="#67e8f9">10.0.0.235 ingress · 10.0.17.13 gitea_gitea · 10.0.3.134 nginx_ingress</text>
|
||||
</g>
|
||||
<g class="node-fill"><rect x="550" y="145" width="740" height="15" rx="3"/>
|
||||
<text x="558" y="152" class="node-text" font-size="9">gitea_runner.1.7qu01adpg71cpk5seaa22ve76</text>
|
||||
<text x="558" y="162" class="node-text" font-size="7" fill="#67e8f9">10.0.0.6 ingress · gitea_gitea</text>
|
||||
</g>
|
||||
</g>
|
||||
<g><rect x="540" y="171" width="760" height="66" rx="8" class="stack-fill"/>
|
||||
<text x="550" y="187" class="stack-text" font-size="12">hermes</text>
|
||||
<g class="node-fill"><rect x="550" y="198" width="740" height="15" rx="3"/>
|
||||
<text x="558" y="205" class="node-text" font-size="9">hermes_hermes-agent.1.lbx30ov89d2nhukviexnb32sz</text>
|
||||
<text x="558" y="215" class="node-text" font-size="7" fill="#67e8f9">hermes_hermes .11.9</text>
|
||||
</g>
|
||||
<g class="node-fill"><rect x="550" y="216" width="740" height="15" rx="3"/>
|
||||
<text x="558" y="223" class="node-text" font-size="9">hermes_hermes-gateway.1.4ceprn5xwyd1jdvxk7r5i9mde</text>
|
||||
<text x="558" y="233" class="node-text" font-size="7" fill="#67e8f9">10.0.0.204 ingress · hermes_hermes .11.10</text>
|
||||
</g>
|
||||
</g>
|
||||
<g><rect x="540" y="242" width="760" height="138" rx="8" class="stack-fill"/>
|
||||
<text x="550" y="258" class="stack-text" font-size="12">hermes_infra</text>
|
||||
<g class="node-fill"><rect x="550" y="269" width="740" height="15" rx="3"/>
|
||||
<text x="558" y="276" class="node-text" font-size="9">squid.1.l9zssq6kvlxwdw7ywlzri7miw</text>
|
||||
<text x="558" y="286" class="node-text" font-size="7" fill="#67e8f9">.108 ingress · squid_egress .12.11 · hermes_proxy .15.44</text>
|
||||
</g>
|
||||
<g class="node-fill"><rect x="550" y="287" width="740" height="15" rx="3"/>
|
||||
<text x="558" y="294" class="node-text" font-size="9">sarg.1.ucvl44g6djt49y4fgfydmia4y</text>
|
||||
<text x="558" y="304" class="node-text" font-size="7" fill="#67e8f9">.107 ingress · admin .14.48</text>
|
||||
</g>
|
||||
<g class="node-fill"><rect x="550" y="305" width="740" height="15" rx="3"/>
|
||||
<text x="558" y="312" class="node-text" font-size="9">hermes-ui.1.8mohposymmwn3sxcrupcf2a4h</text>
|
||||
<text x="558" y="322" class="node-text" font-size="7" fill="#67e8f9">.106 ingress · hermes_infra_default .13.16 · hermes_proxy .15.43</text>
|
||||
</g>
|
||||
<g class="node-fill"><rect x="550" y="323" width="740" height="15" rx="3"/>
|
||||
<text x="558" y="330" class="node-text" font-size="9">hermes-gateway.1.vrbji4iqmw2e69zq1cbf2ooqb</text>
|
||||
<text x="558" y="340" class="node-text" font-size="7" fill="#67e8f9">hermes_proxy .15.47</text>
|
||||
</g>
|
||||
<g class="node-fill"><rect x="550" y="341" width="740" height="15" rx="3"/>
|
||||
<text x="558" y="348" class="node-text" font-size="9">docker_socket_proxy.1.h80ql7v0epork75q3ij3h6gqf</text>
|
||||
<text x="558" y="358" class="node-text" font-size="7" fill="#67e8f9">admin .14.46 · hermes_proxy .15.46</text>
|
||||
</g>
|
||||
<g class="node-fill"><rect x="550" y="359" width="740" height="15" rx="3"/>
|
||||
<text x="558" y="366" class="node-text" font-size="9">brencher-state-proxy (dead)</text>
|
||||
<text x="558" y="376" class="node-text" font-size="7" fill="#67e8f9">nginx_ingress · Replicas: 0</text>
|
||||
</g>
|
||||
</g>
|
||||
<g><rect x="540" y="385" width="760" height="102" rx="8" class="stack-fill"/>
|
||||
<text x="550" y="401" class="stack-text" font-size="12">immich</text>
|
||||
<g class="node-fill"><rect x="550" y="412" width="740" height="15" rx="3"/>
|
||||
<text x="558" y="419" class="node-text" font-size="9">immich_server.1.a83c7oac6f4ukkzhae1tsj2ym</text>
|
||||
<text x="558" y="429" class="node-text" font-size="7" fill="#67e8f9">.225 ingress · immich_default .2.14</text>
|
||||
</g>
|
||||
<g class="node-fill"><rect x="550" y="430" width="740" height="15" rx="3"/>
|
||||
<text x="558" y="437" class="node-text" font-size="9">immich_database.1.lstdz3kkogsrcg7vx7sae6rfa</text>
|
||||
<text x="558" y="447" class="node-text" font-size="7" fill="#67e8f9">.13 ingress · immich_default .2.6</text>
|
||||
</g>
|
||||
<g class="node-fill"><rect x="550" y="448" width="740" height="15" rx="3"/>
|
||||
<text x="558" y="455" class="node-text" font-size="9">immich_redis.1.85hnh4elu9xxl9jcs64v4u0u2</text>
|
||||
<text x="558" y="465" class="node-text" font-size="7" fill="#67e8f9">immich_default .2.8</text>
|
||||
</g>
|
||||
<g class="node-fill"><rect x="550" y="466" width="740" height="15" rx="3"/>
|
||||
<text x="558" y="473" class="node-text" font-size="9">immich_machine-learning.1.wnkv2chqsfaq3st7a0qgezt7b</text>
|
||||
<text x="558" y="483" class="node-text" font-size="7" fill="#67e8f9">.11 ingress · immich_default .2.3</text>
|
||||
</g>
|
||||
</g>
|
||||
<g><rect x="540" y="492" width="760" height="48" rx="8" class="stack-fill"/>
|
||||
<text x="550" y="508" class="stack-text" font-size="12">brencher</text>
|
||||
<g class="node-fill"><rect x="550" y="519" width="740" height="15" rx="3"/>
|
||||
<text x="558" y="526" class="node-text" font-size="9">brencher_brencher-backend.1.vdeqwr97iafplzieas71sq55a</text>
|
||||
<text x="558" y="536" class="node-text" font-size="7" fill="#67e8f9">.105 ingress · brencher-net .6.195 · brencher_default .7.195 · nginx_ingress .3.224</text>
|
||||
</g>
|
||||
</g>
|
||||
<g><rect x="540" y="545" width="760" height="48" rx="8" class="stack-fill"/>
|
||||
<text x="550" y="561" class="stack-text" font-size="12">brencher2</text>
|
||||
<g class="node-fill"><rect x="550" y="572" width="740" height="15" rx="3"/>
|
||||
<text x="558" y="579" class="node-text" font-size="9">brencher2_brencher-backend.1.ma4m7uabhe5lckk0fktaicf19</text>
|
||||
<text x="558" y="589" class="node-text" font-size="7" fill="#67e8f9">.102 ingress · brencher2-net .5.12 · brencher2_default .1.12 · nginx_ingress .3.221</text>
|
||||
</g>
|
||||
</g>
|
||||
<g><rect x="540" y="598" width="760" height="66" rx="8" class="stack-fill"/>
|
||||
<text x="550" y="614" class="stack-text" font-size="12">gmail_mcp</text>
|
||||
<g class="node-fill"><rect x="550" y="625" width="740" height="15" rx="3"/>
|
||||
<text x="558" y="632" class="node-text" font-size="9">gmail_mcp_gmail-mcp-server.1.wxhzdnibwssve5trbwffzyzpu</text>
|
||||
<text x="558" y="642" class="node-text" font-size="7" fill="#67e8f9">.10 ingress · gmail_mcp_default .8.6</text>
|
||||
</g>
|
||||
<g class="node-fill"><rect x="550" y="643" width="740" height="15" rx="3"/>
|
||||
<text x="558" y="650" class="node-text" font-size="9">gmail_mcp_telegram-mcp-server.1.yehnql7ova2a65s6d6wly5y6m</text>
|
||||
<text x="558" y="660" class="node-text" font-size="7" fill="#67e8f9">.6 ingress · gmail_mcp_default .8.3</text>
|
||||
</g>
|
||||
</g>
|
||||
<g><rect x="540" y="669" width="760" height="66" rx="8" class="stack-fill"/>
|
||||
<text x="550" y="685" class="stack-text" font-size="12">torrserv_proxy</text>
|
||||
<g class="node-fill"><rect x="550" y="696" width="740" height="15" rx="3"/>
|
||||
<text x="558" y="703" class="node-text" font-size="9">torrserv_proxy_reverseproxy.1.r906zcw2jyny6g6w56an1u193</text>
|
||||
<text x="558" y="713" class="node-text" font-size="7" fill="#67e8f9">.15 ingress · torrserv_proxy_default .10.4</text>
|
||||
</g>
|
||||
<g class="node-fill"><rect x="550" y="714" width="740" height="15" rx="3"/>
|
||||
<text x="558" y="721" class="node-text" font-size="9">torrserv_proxy_fileserver.1.zrum9hzhght93z9yxv0ae7hbs</text>
|
||||
<text x="558" y="731" class="node-text" font-size="7" fill="#67e8f9">.12 ingress · torrserv_proxy_default .10.3</text>
|
||||
</g>
|
||||
</g>
|
||||
<g><rect x="540" y="740" width="760" height="66" rx="8" class="node-dead"/>
|
||||
<text x="550" y="756" class="node-dead-text" font-size="12">nginx (dead)</text>
|
||||
<g class="node-dead"><rect x="550" y="767" width="740" height="15" rx="3"/>
|
||||
<text x="558" y="774" class="node-text" font-size="9">nginx_nginx (jwilder/nginx-proxy)</text>
|
||||
<text x="558" y="784" class="node-text" font-size="7" fill="#67e8f9">Replicas: 0 · no containers</text>
|
||||
</g>
|
||||
<g class="node-dead"><rect x="550" y="785" width="740" height="15" rx="3"/>
|
||||
<text x="558" y="792" class="node-text" font-size="9">nginx_nginx_acme (acme-companion)</text>
|
||||
<text x="558" y="802" class="node-text" font-size="7" fill="#67e8f9">Replicas: 0</text>
|
||||
</g>
|
||||
</g>
|
||||
<g><rect x="540" y="811" width="760" height="48" rx="8" class="stack-fill"/>
|
||||
<text x="550" y="827" class="stack-text" font-size="12">photosHelper</text>
|
||||
<g class="node-fill"><rect x="550" y="838" width="740" height="15" rx="3"/>
|
||||
<text x="558" y="845" class="node-text" font-size="9">photosHelper_nfs_crypt</text>
|
||||
<text x="558" y="855" class="node-text" font-size="7" fill="#67e8f9">.9 ingress · photosHelper_default</text>
|
||||
</g>
|
||||
</g>
|
||||
<g><rect x="540" y="864" width="760" height="48" rx="8" class="stack-fill"/>
|
||||
<text x="550" y="880" class="stack-text" font-size="12">docker_socket_proxy</text>
|
||||
<g class="node-fill"><rect x="550" y="891" width="740" height="15" rx="3"/>
|
||||
<text x="558" y="898" class="node-text" font-size="9">docker_socket_proxy_hermes-gateway.1.kb09yigdxe9i7yqk9m0ecu2h5</text>
|
||||
<text x="558" y="908" class="node-text" font-size="7" fill="#67e8f9">hermes_proxy .19.3 · dsp_default</text>
|
||||
</g>
|
||||
</g>
|
||||
<g><rect x="540" y="917" width="760" height="48" rx="8" class="stack-fill"/>
|
||||
<text x="550" y="933" class="stack-text" font-size="12">lampa-jackett (standalone, не swarm)</text>
|
||||
<g class="node-fill"><rect x="550" y="944" width="740" height="15" rx="3"/>
|
||||
<text x="558" y="951" class="node-text" font-size="9">lampa-jackett-1</text>
|
||||
<text x="558" y="961" class="node-text" font-size="7" fill="#67e8f9">port 9117:9117 на хосте</text>
|
||||
</g>
|
||||
</g>
|
||||
<!-- ============== COL 4: INTERNAL NETWORKS ============== -->
|
||||
<text x="1330" y="80" class="col-label">4. INTERNAL NETS</text>
|
||||
<text x="1330" y="94" class="col-label" font-size="9">только для своего стека</text>
|
||||
<g>
|
||||
<rect x="1330" y="106" width="240" height="16" rx="3" class="net-internal-fill"/>
|
||||
<text x="1336" y="117" class="net-internal-text" font-size="9">gitea_gitea</text>
|
||||
<text x="1564" y="117" text-anchor="end" class="net-sub" font-size="7">10.0.17.0/24</text>
|
||||
</g>
|
||||
<g>
|
||||
<rect x="1330" y="391" width="240" height="16" rx="3" class="net-internal-fill"/>
|
||||
<text x="1336" y="402" class="net-internal-text" font-size="9">immich_default</text>
|
||||
<text x="1564" y="402" text-anchor="end" class="net-sub" font-size="7">10.0.2.0/24</text>
|
||||
</g>
|
||||
<g>
|
||||
<rect x="1330" y="177" width="240" height="16" rx="3" class="net-internal-fill"/>
|
||||
<text x="1336" y="188" class="net-internal-text" font-size="9">hermes_hermes</text>
|
||||
<text x="1564" y="188" text-anchor="end" class="net-sub" font-size="7">10.0.11.0/24</text>
|
||||
</g>
|
||||
<g>
|
||||
<rect x="1330" y="248" width="240" height="16" rx="3" class="net-internal-fill"/>
|
||||
<text x="1336" y="259" class="net-internal-text" font-size="9">hermes_infra_default</text>
|
||||
<text x="1564" y="259" text-anchor="end" class="net-sub" font-size="7">10.0.13.0/24</text>
|
||||
</g>
|
||||
<g>
|
||||
<rect x="1330" y="604" width="240" height="16" rx="3" class="net-internal-fill"/>
|
||||
<text x="1336" y="615" class="net-internal-text" font-size="9">gmail_mcp_default</text>
|
||||
<text x="1564" y="615" text-anchor="end" class="net-sub" font-size="7">10.0.8.0/24</text>
|
||||
</g>
|
||||
<g>
|
||||
<rect x="1330" y="106" width="240" height="16" rx="3" class="net-internal-fill"/>
|
||||
<text x="1336" y="117" class="net-internal-text" font-size="9">torrserv_proxy_default</text>
|
||||
<text x="1564" y="117" text-anchor="end" class="net-sub" font-size="7">10.0.10.0/24</text>
|
||||
</g>
|
||||
<g>
|
||||
<rect x="1330" y="498" width="240" height="16" rx="3" class="net-internal-fill"/>
|
||||
<text x="1336" y="509" class="net-internal-text" font-size="9">brencher_brencher-net</text>
|
||||
<text x="1564" y="509" text-anchor="end" class="net-sub" font-size="7">10.0.6.0/24</text>
|
||||
</g>
|
||||
<g>
|
||||
<rect x="1330" y="516" width="240" height="16" rx="3" class="net-internal-fill"/>
|
||||
<text x="1336" y="527" class="net-internal-text" font-size="9">brencher_default</text>
|
||||
<text x="1564" y="527" text-anchor="end" class="net-sub" font-size="7">10.0.7.0/24</text>
|
||||
</g>
|
||||
<g>
|
||||
<rect x="1330" y="551" width="240" height="16" rx="3" class="net-internal-fill"/>
|
||||
<text x="1336" y="562" class="net-internal-text" font-size="9">brencher2_brencher-net</text>
|
||||
<text x="1564" y="562" text-anchor="end" class="net-sub" font-size="7">10.0.5.0/24</text>
|
||||
</g>
|
||||
<g>
|
||||
<rect x="1330" y="569" width="240" height="16" rx="3" class="net-internal-fill"/>
|
||||
<text x="1336" y="580" class="net-internal-text" font-size="9">brencher2_default</text>
|
||||
<text x="1564" y="580" text-anchor="end" class="net-sub" font-size="7">10.0.1.0/24</text>
|
||||
</g>
|
||||
<g>
|
||||
<rect x="1330" y="817" width="240" height="16" rx="3" class="net-internal-fill"/>
|
||||
<text x="1336" y="828" class="net-internal-text" font-size="9">photosHelper_default</text>
|
||||
<text x="1564" y="828" text-anchor="end" class="net-sub" font-size="7">10.0.9.0/24</text>
|
||||
</g>
|
||||
<g>
|
||||
<rect x="1330" y="870" width="240" height="16" rx="3" class="net-internal-fill"/>
|
||||
<text x="1336" y="881" class="net-internal-text" font-size="9">docker_socket_proxy_default</text>
|
||||
<text x="1564" y="881" text-anchor="end" class="net-sub" font-size="7">10.0.21.0/24</text>
|
||||
</g>
|
||||
|
||||
<!-- connector dots on col 2 right edge -->
|
||||
<circle cx="510" cy="360" r="3" fill="#fbbf24" stroke="#92400e" stroke-width="1"/>
|
||||
<circle cx="510" cy="393" r="3" fill="#fbbf24" stroke="#92400e" stroke-width="1"/>
|
||||
<circle cx="510" cy="426" r="3" fill="#fbbf24" stroke="#92400e" stroke-width="1"/>
|
||||
<circle cx="510" cy="459" r="3" fill="#fbbf24" stroke="#92400e" stroke-width="1"/>
|
||||
<circle cx="510" cy="492" r="3" fill="#fbbf24" stroke="#92400e" stroke-width="1"/>
|
||||
<circle cx="510" cy="525" r="3" fill="#fbbf24" stroke="#92400e" stroke-width="1"/>
|
||||
<circle cx="510" cy="558" r="3" fill="#fbbf24" stroke="#92400e" stroke-width="1"/>
|
||||
<circle cx="510" cy="591" r="3" fill="#fbbf24" stroke="#92400e" stroke-width="1"/>
|
||||
<circle cx="510" cy="624" r="3" fill="#fbbf24" stroke="#92400e" stroke-width="1"/>
|
||||
<circle cx="510" cy="657" r="3" fill="#fbbf24" stroke="#92400e" stroke-width="1"/>
|
||||
|
||||
<!-- connector dots on col 4 left edge -->
|
||||
<circle cx="1330" cy="114" r="3" fill="#a78bfa" stroke="#5b21b6" stroke-width="1"/>
|
||||
<circle cx="1330" cy="399" r="3" fill="#a78bfa" stroke="#5b21b6" stroke-width="1"/>
|
||||
<circle cx="1330" cy="185" r="3" fill="#a78bfa" stroke="#5b21b6" stroke-width="1"/>
|
||||
<circle cx="1330" cy="256" r="3" fill="#a78bfa" stroke="#5b21b6" stroke-width="1"/>
|
||||
<circle cx="1330" cy="612" r="3" fill="#a78bfa" stroke="#5b21b6" stroke-width="1"/>
|
||||
<circle cx="1330" cy="275" r="3" fill="#a78bfa" stroke="#5b21b6" stroke-width="1"/>
|
||||
<circle cx="1330" cy="506" r="3" fill="#a78bfa" stroke="#5b21b6" stroke-width="1"/>
|
||||
<circle cx="1330" cy="559" r="3" fill="#a78bfa" stroke="#5b21b6" stroke-width="1"/>
|
||||
<circle cx="1330" cy="506" r="3" fill="#a78bfa" stroke="#5b21b6" stroke-width="1"/>
|
||||
<circle cx="1330" cy="559" r="3" fill="#a78bfa" stroke="#5b21b6" stroke-width="1"/>
|
||||
<circle cx="1330" cy="825" r="3" fill="#a78bfa" stroke="#5b21b6" stroke-width="1"/>
|
||||
<circle cx="1330" cy="878" r="3" fill="#a78bfa" stroke="#5b21b6" stroke-width="1"/>
|
||||
|
||||
<!-- col 2 (ingress/egress) -> nodes (col 3) -->
|
||||
<line x1="510" y1="360" x2="550" y2="136" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="510" y1="393" x2="550" y2="136" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="510" y1="360" x2="550" y2="154" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="510" y1="360" x2="550" y2="225" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="510" y1="360" x2="550" y2="278" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="510" y1="459" x2="550" y2="278" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="510" y1="525" x2="550" y2="278" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="510" y1="360" x2="550" y2="296" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="510" y1="492" x2="550" y2="296" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="510" y1="360" x2="550" y2="314" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="510" y1="525" x2="550" y2="314" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="510" y1="525" x2="550" y2="332" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="510" y1="492" x2="550" y2="350" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="510" y1="525" x2="550" y2="350" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="510" y1="360" x2="550" y2="421" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="510" y1="360" x2="550" y2="439" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="510" y1="360" x2="550" y2="475" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="510" y1="360" x2="550" y2="528" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="510" y1="393" x2="550" y2="528" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="510" y1="360" x2="550" y2="581" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="510" y1="393" x2="550" y2="581" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="510" y1="360" x2="550" y2="634" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="510" y1="360" x2="550" y2="652" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="510" y1="360" x2="550" y2="705" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="510" y1="360" x2="550" y2="723" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="510" y1="360" x2="550" y2="847" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="510" y1="624" x2="550" y2="900" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
|
||||
<!-- nodes (col 3) -> col 4 (internal nets) -->
|
||||
<line x1="1300" y1="136" x2="1330" y2="114" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="1300" y1="154" x2="1330" y2="114" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="1300" y1="207" x2="1330" y2="185" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="1300" y1="225" x2="1330" y2="185" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="1300" y1="314" x2="1330" y2="256" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="1300" y1="421" x2="1330" y2="399" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="1300" y1="439" x2="1330" y2="399" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="1300" y1="457" x2="1330" y2="399" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="1300" y1="475" x2="1330" y2="399" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="1300" y1="528" x2="1330" y2="506" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="1300" y1="528" x2="1330" y2="506" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="1300" y1="581" x2="1330" y2="559" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="1300" y1="581" x2="1330" y2="559" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="1300" y1="634" x2="1330" y2="612" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="1300" y1="652" x2="1330" y2="612" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="1300" y1="705" x2="1330" y2="275" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="1300" y1="723" x2="1330" y2="275" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="1300" y1="847" x2="1330" y2="825" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<line x1="1300" y1="900" x2="1330" y2="878" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<!-- External flow arrows (col 1) -->
|
||||
<line x1="150" y1="150" x2="150" y2="160" class="arrow-lan" stroke-width="1.5" marker-end="url(#a-lan)"/>
|
||||
<line x1="150" y1="260" x2="150" y2="270" class="arrow-lan" stroke-width="1.5" marker-end="url(#a-lan)"/>
|
||||
<line x1="260" y1="295" x2="290" y2="360" class="arrow-egress" stroke-width="1" stroke-dasharray="3 3" stroke-opacity="0.6" marker-end="url(#a-egress)"/>
|
||||
<g>
|
||||
<rect x="40" y="995" width="900" height="100" rx="8" class="stack-fill" stroke="#22d3ee"/>
|
||||
<text x="55" y="1015" class="col-label">LEGEND</text>
|
||||
<rect x="55" y="1025" width="22" height="14" rx="3" class="ext-client-fill"/>
|
||||
<text x="85" y="1036" class="legend-text" font-size="9">Client (tailscale)</text>
|
||||
<rect x="55" y="1043" width="22" height="14" rx="3" class="net-external-fill"/>
|
||||
<text x="85" y="1054" class="legend-text" font-size="9">Keenetic / lan</text>
|
||||
<rect x="240" y="1025" width="22" height="14" rx="3" class="net-io-fill"/>
|
||||
<text x="270" y="1036" class="legend-text" font-size="9">ingress / egress net</text>
|
||||
<rect x="240" y="1043" width="22" height="14" rx="3" class="net-internal-fill"/>
|
||||
<text x="270" y="1054" class="legend-text" font-size="9">internal net (stack-private)</text>
|
||||
<rect x="460" y="1025" width="22" height="14" rx="3" class="stack-fill"/>
|
||||
<text x="490" y="1036" class="legend-text" font-size="9">stack</text>
|
||||
<rect x="460" y="1043" width="22" height="14" rx="3" class="node-fill"/>
|
||||
<text x="490" y="1054" class="legend-text" font-size="9">node (container)</text>
|
||||
<circle cx="660" cy="1032" r="3" fill="#fbbf24" stroke="#92400e" stroke-width="1"/>
|
||||
<text x="670" y="1036" class="legend-text" font-size="9">net connector (col 2)</text>
|
||||
<circle cx="660" cy="1050" r="3" fill="#a78bfa" stroke="#5b21b6" stroke-width="1"/>
|
||||
<text x="670" y="1054" class="legend-text" font-size="9">net connector (col 4)</text>
|
||||
<line x1="55" y1="1070" x2="80" y2="1070" class="arrow-egress" stroke-width="1.5" stroke-dasharray="3 3" marker-end="url(#a-egress)"/>
|
||||
<text x="90" y="1073" class="legend-text" font-size="9">egress flow</text>
|
||||
<line x1="240" y1="1070" x2="265" y2="1070" class="arrow-internal" stroke-width="1" marker-end="url(#a-internal)"/>
|
||||
<text x="275" y="1073" class="legend-text" font-size="9">internal flow (col 3 -> col 4)</text>
|
||||
<line x1="460" y1="1070" x2="485" y2="1070" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
|
||||
<text x="495" y="1073" class="legend-text" font-size="9">node <-> network</text>
|
||||
</g>
|
||||
|
||||
<text x="40" y="1135" class="footer" font-size="9">
|
||||
snapshot 2026-08-27 · 4 columns · 10 egress + 12 internal + 5 external · 12 stacks
|
||||
</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 31 KiB |
Reference in New Issue
Block a user