2025-01-29 23:44:09 +02:00
|
|
|
# NetBird Kubernetes Operator
|
|
|
|
|
|
2026-04-24 16:22:04 +02:00
|
|
|
The NetBird Kubernetes Operator automates the provisioning of NetBird network access for services running in your cluster.
|
2025-03-06 10:57:45 +02:00
|
|
|
|
2026-04-24 16:22:04 +02:00
|
|
|
## Documentation
|
2025-01-29 23:44:09 +02:00
|
|
|
|
2026-04-24 16:22:04 +02:00
|
|
|
- [Getting Started](/docs/getting-started.md)
|
|
|
|
|
- [Usage](/docs/usage.md)
|
|
|
|
|
- [API Reference](/docs/api-reference.md)
|
2025-01-29 23:44:09 +02:00
|
|
|
|
2026-04-24 16:22:04 +02:00
|
|
|
## How It Works
|
2025-01-29 23:44:09 +02:00
|
|
|
|
2026-04-24 16:22:04 +02:00
|
|
|
A `NetworkRouter` registers a NetBird router peer for a given DNS zone in your cluster.
|
2025-01-29 23:44:09 +02:00
|
|
|
|
2026-04-24 16:22:04 +02:00
|
|
|
```yaml
|
|
|
|
|
apiVersion: netbird.io/v1alpha1
|
|
|
|
|
kind: NetworkRouter
|
|
|
|
|
metadata:
|
|
|
|
|
name: prod
|
|
|
|
|
namespace: netbird
|
|
|
|
|
spec:
|
|
|
|
|
dnsZoneRef:
|
|
|
|
|
name: prod.company.internal
|
2025-03-06 15:32:17 +01:00
|
|
|
```
|
2025-03-06 10:57:45 +02:00
|
|
|
|
2026-04-24 16:22:04 +02:00
|
|
|
A `NetworkResource` then exposes a Kubernetes service through that router to one or more NetBird groups.
|
2025-08-05 19:45:36 +03:00
|
|
|
|
2026-04-24 16:22:04 +02:00
|
|
|
```yaml
|
|
|
|
|
apiVersion: netbird.io/v1alpha1
|
|
|
|
|
kind: NetworkResource
|
|
|
|
|
metadata:
|
|
|
|
|
name: nginx
|
|
|
|
|
namespace: default
|
|
|
|
|
spec:
|
|
|
|
|
networkRouterRef:
|
|
|
|
|
name: prod
|
|
|
|
|
namespace: netbird
|
|
|
|
|
serviceRef:
|
|
|
|
|
name: nginx
|
|
|
|
|
groups:
|
|
|
|
|
- name: All
|
2025-01-29 23:44:09 +02:00
|
|
|
```
|