You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Create a Setup Key in your [NetBird console](https://docs.netbird.io/how-to/register-machines-using-setup-keys#using-setup-keys).
@@ -94,8 +96,58 @@ spec:
94
96
containers:
95
97
- image: yourimage
96
98
name: container
99
+
```
100
+
101
+
## Provisioning Networks (Ingress Functionality)
97
102
103
+
### Granting controller access to NetBird Management
104
+
105
+
> [!IMPORTANT]
106
+
> NetBird kubernetes operator generates configurations using NetBird API, editing or deleting these configurations in the NetBird console may cause temporary network disconnection until the operator reconciles the configuration.
107
+
108
+
1. Create a Service User on your NetBird dashboard (Must be Admin). [Doc](https://docs.netbird.io/how-to/access-netbird-public-api#creating-a-service-user).
109
+
1. Create access token for the Service User (Must be Admin). [Doc](https://docs.netbird.io/how-to/access-netbird-public-api#creating-a-service-user).
110
+
1. Add access token to your helm values file under `netbirdAPI.key`.
111
+
1. Alternatively, provision secret in the same namespace as the operator and set the key `NB_API_KEY` to the access token generated.
112
+
1. Set `netbirdAPI.keyFromSecret` to the name of the secret created.
113
+
1. Set `ingress.enabled` to `true`.
114
+
1. Optionally, to provision network immediately, set `ingress.router.enabled` to `true`.
115
+
1. Optionally, to provision 1 network per kubernetes namespace, set `ingress.namespacedNetworks` to `true`.
116
+
1. Run `helm install` or `helm upgrade`.
117
+
118
+
### Exposing a Service
119
+
120
+
> [!IMPORTANT]
121
+
> Ingress DNS Resolution requires DNS Wildcard Routing to be enabled, and at least one DNS Nameserver configured for clients.
122
+
123
+
|Annotation|Description|Default|
124
+
|---|---|---|
125
+
|`netbird.io/expose`|Expose service using NetBird Network Resource||
126
+
|`netbird.io/groups`|Comma-separated list of group names to assign to Network Resource|`{ClusterName}-{Namespace}-{Service}`|
0 commit comments