feat: add OSINT Dashboard Kubernetes infrastructure
- Helm chart scaffold (Chart.yaml, values.yaml, _helpers.tpl)
- Namespace + RBAC manifests
- PostgreSQL (CNPG, 3 replicas, PostGIS + TimescaleDB)
- NATS JetStream (3 replicas, persistent, custom subjects)
- Redis Sentinel (1 primary + 2 replicas, HA)
- MinIO distributed (4 replicas, bucket init job)
- Gateway API HTTPRoute + cert-manager TLS certificates
- Monitoring stack (Prometheus, Grafana, Alertmanager, exporters)
- NetworkPolicies (default deny + per-component policies)
- GitHub Actions CI/CD pipeline (lint, template, security scan)
- Flux CD staging overlay
2026-05-18 00:57:53 +00:00
|
|
|
{{- if .Values.networkPolicies.enabled }}
|
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
|
kind: NetworkPolicy
|
|
|
|
|
metadata:
|
|
|
|
|
name: monitoring-netpol
|
|
|
|
|
namespace: {{ .Values.namespace }}
|
|
|
|
|
labels:
|
|
|
|
|
{{- include "osint-dashboard.labels" . | nindent 4 }}
|
|
|
|
|
app.kubernetes.io/component: security
|
|
|
|
|
spec:
|
|
|
|
|
podSelector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app.kubernetes.io/name: osint-dashboard
|
|
|
|
|
app.kubernetes.io/component: monitoring
|
|
|
|
|
policyTypes:
|
|
|
|
|
- Ingress
|
|
|
|
|
- Egress
|
|
|
|
|
ingress:
|
2026-05-23 04:38:51 +00:00
|
|
|
# Allow Grafana web access from monitoring namespace
|
|
|
|
|
- from:
|
|
|
|
|
- namespaceSelector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
kubernetes.io/metadata.name: monitoring
|
feat: add OSINT Dashboard Kubernetes infrastructure
- Helm chart scaffold (Chart.yaml, values.yaml, _helpers.tpl)
- Namespace + RBAC manifests
- PostgreSQL (CNPG, 3 replicas, PostGIS + TimescaleDB)
- NATS JetStream (3 replicas, persistent, custom subjects)
- Redis Sentinel (1 primary + 2 replicas, HA)
- MinIO distributed (4 replicas, bucket init job)
- Gateway API HTTPRoute + cert-manager TLS certificates
- Monitoring stack (Prometheus, Grafana, Alertmanager, exporters)
- NetworkPolicies (default deny + per-component policies)
- GitHub Actions CI/CD pipeline (lint, template, security scan)
- Flux CD staging overlay
2026-05-18 00:57:53 +00:00
|
|
|
ports:
|
|
|
|
|
- protocol: TCP
|
|
|
|
|
port: {{ .Values.monitoring.grafana.port }}
|
|
|
|
|
- protocol: TCP
|
|
|
|
|
port: {{ .Values.monitoring.prometheus.port }}
|
|
|
|
|
- protocol: TCP
|
|
|
|
|
port: {{ .Values.monitoring.alertmanager.port }}
|
|
|
|
|
egress:
|
|
|
|
|
# Allow DNS
|
|
|
|
|
- to:
|
|
|
|
|
- namespaceSelector: {}
|
|
|
|
|
podSelector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
k8s-app: kube-dns
|
|
|
|
|
ports:
|
|
|
|
|
- protocol: UDP
|
|
|
|
|
port: 53
|
|
|
|
|
- protocol: TCP
|
|
|
|
|
port: 53
|
|
|
|
|
# Allow scraping all OSINT pods
|
|
|
|
|
- to:
|
|
|
|
|
- podSelector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app.kubernetes.io/name: osint-dashboard
|
|
|
|
|
ports:
|
|
|
|
|
- protocol: TCP
|
|
|
|
|
port: 9090
|
|
|
|
|
- protocol: TCP
|
|
|
|
|
port: 9093
|
|
|
|
|
- protocol: TCP
|
|
|
|
|
port: 3000
|
|
|
|
|
- protocol: TCP
|
|
|
|
|
port: 9187 # postgres-exporter
|
|
|
|
|
- protocol: TCP
|
|
|
|
|
port: 9121 # redis-exporter
|
|
|
|
|
- protocol: TCP
|
|
|
|
|
port: 8222 # nats-monitor
|
|
|
|
|
- protocol: TCP
|
|
|
|
|
port: 9000 # minio
|
|
|
|
|
{{- end }}
|