feat: scaffold agentmon services and k8s deploy

Adds Go microservices (ingest-gateway, event-processor, query-api, web-ui), NATS+Postgres wiring, initial schema/init job, ingress manifests for LAN+tailnet, and a multi-arch image build script.
This commit is contained in:
William Valentin
2026-01-17 01:06:57 -08:00
parent a584d7e274
commit 256b841cbf
28 changed files with 1554 additions and 0 deletions
+72
View File
@@ -0,0 +1,72 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: default-deny-ingress
namespace: agentmon
spec:
podSelector: {}
policyTypes:
- Ingress
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-web-ui-to-query-api
namespace: agentmon
spec:
podSelector:
matchLabels:
app: query-api
policyTypes: [Ingress]
ingress:
- from:
- podSelector:
matchLabels:
app: web-ui
ports:
- protocol: TCP
port: 8081
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-query-api-to-postgres
namespace: agentmon
spec:
podSelector:
matchLabels:
app: postgres
policyTypes: [Ingress]
ingress:
- from:
- podSelector:
matchLabels:
app: query-api
- podSelector:
matchLabels:
app: event-processor
ports:
- protocol: TCP
port: 5432
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-ingest-to-nats
namespace: agentmon
spec:
podSelector:
matchLabels:
app: nats
policyTypes: [Ingress]
ingress:
- from:
- podSelector:
matchLabels:
app: ingest-gateway
- podSelector:
matchLabels:
app: event-processor
ports:
- protocol: TCP
port: 4222