Skip to content

MikroTik Kubernetes Operator Manage RouterOS from Kubernetes

DNS, routes, port forwarding, and firewall rules on MikroTik RouterOS v6 and v7, from a local cluster such as k3s.

Kubernetes Operator for MikroTik Routers

What it manages

Kubernetes resource RouterOS configuration
Service annotations Owned DNS, ClusterIP route, and optional port-forward CRs
Ingress with class mikrotik Owned DNS, route, and optional port-forward CRs
HTTPRoute attached to the MikroTik GatewayClass Owned DNS, route, and optional port-forward CRs
MikroTikDNSRecord /ip dns static; standalone serviceRef also owns ClusterIP routes
MikroTikRoute /ip route
MikroTikPortForward dst-nat, src-nat, and forward firewall rules
MikroTikFirewallRule /ip firewall filter

Safety model

Every generated RouterOS entry has a managed comment containing its Kubernetes resource identity. Reconciliation is idempotent and periodic drift checks restore changes made outside Kubernetes. Existing RouterOS entries without the operator’s managed comment are not modified or deleted.