bedrock

Network flows

Everything not listed here is dropped. Each row is allowed in both the source’s and the destination’s policy. Policies live in tenant-workload/netpols/, one file per namespace, plus cluster-default-deny.yaml.

#Allowed for every pod

FromToPort
Any podCoreDNS in kube-system53 TCP and UDP
The nodeAny pod in a namespace covered by the cluster-wide policyany
The node (kubelet probes)Pods in the namespaces that limit the node themselves: application, falco, node-agents, reloader, garage, openbao, bedrock-failover and the database namespacesonly their probe and named ports

#Metrics collection

FromToPort
Prometheuskube-state-metrics8080
PrometheusOpenCost9003
Prometheusblackbox exporter9115
PrometheusAlertmanager9093
PrometheusLoki3100
PrometheusTempo3200
PrometheusFalco8765
PrometheusDatabase clusters9187, 9127
PrometheusKyverno8000
PrometheusLonghorn manager9500
PrometheusGarage admin3903
PrometheusFailover controller9090, /metrics only
PrometheusCloudNativePG operator8080
PrometheusNodes: kubelet, node-exporter, etcd10250, 9100, 2381
PrometheusKubernetes APIany

#Logs, traces and alerts

FromToPort
AlloyLoki3100
AlloyTempo (OTLP)4317
LokiLoki (ring and gossip)3100, 9095, 7946 TCP and UDP
LokiAlertmanager9093
LokiGarage S33900
TempoGarage S33900

#Dashboards

FromToPort
GrafanaPrometheus9090
GrafanaLoki3100
GrafanaTempo3200
Grafana sidecarKubernetes APIany
OpenCostPrometheus9090
OpenCostKubernetes APIany

#Probes

FromToPort
blackbox exporterGrafana3000
blackbox exporterPrometheus9090
blackbox exporterAlertmanager9093
blackbox exporterLoki3100
blackbox exporterTempo3200
blackbox exporterGarage admin3903
blackbox exporterDatabase clusters5432
blackbox exporterKyverno and CloudNativePG webhooks9443
blackbox exporterKubernetes API (certificate check)any

#Databases

A database namespace is any namespace labelled bedrockctl.com/database: "true". Every rule here selects it by that label, so a replica added later gets the same flows without a new policy anywhere else.

FromToPort
Database instancesDatabase instances in any other database namespace (streaming replication, either way)5432
Database instances and backup jobsGarage S3 (WAL and base backups)3900
CloudNativePG operatorDatabase instances8000
Database instancesKubernetes APIany
The nodesDatabase instances8000, 5432

#Failover controller

FromToPort
ObserversObservers (exchange, mutual TLS)8443
ObserversDatabase instances5432
VerifierDatabase instances5432, 8000
CheckerDatabase instances8000
Observers, verifier, deciders, checkerKubernetes APIany
The nodesFailover controller9090

#Storage

FromToPort
GarageGarage (cluster RPC)3901
garage-initGarage admin3903
GarageKubernetes API (node discovery)any
The nodesGarage S33900

#Secrets

FromToPort
OpenBaoOpenBao (API and raft)8200, 8201
The nodesOpenBao8200
OpenBao CSI providerOpenBao8200
OpenBaoKubernetes API (TokenReview)any
OpenBaoPostgreSQL instances in cluster-1, cluster-2 and cluster-3 (role management)5432
OpenBao’s db-ca-bundle sidecarKubernetes API (reads the db-ca-* ConfigMaps in openbao)any
CSI driver, OpenBao CSI providerKubernetes APIany
The nodesCSI driver, OpenBao CSI provider (probes)9808, 8080

#Admission webhooks

FromToPort
Kubernetes APIKyverno9443
Kubernetes APICloudNativePG operator9443

#Operators and controllers

FromToPort
Kyverno, prometheus-operator, Longhorn, Strimzi, Reloader, Alloy, kube-state-metricsKubernetes APIany