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
- Update rest-api.md to show the new default behavior where the
client-api is exposed on the client-router domain under /v1
- Add clientApi.domain to the configuration reference table
- Update API examples to use uplink.example.com as the domain
Signed-off-by: Han Verstraete (OpenFaaS Ltd) <han@openfaas.com>
Copy file name to clipboardExpand all lines: docs/uplink/installation.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -335,6 +335,7 @@ Overview of inlets-uplink parameters in `values.yaml`.
335
335
|`tunnelsNamespace`| Deployments, Services and Secrets will be created in this namespace. Leave blank fora cluster-wide scope, with tunnelsin multiple namespaces. |`""`|
336
336
|`inletsVersion`| Inlets Pro release version for tunnel server Pods. |`0.9.12`|
|`clientApi.domain`| Domain for a dedicated client API ingress. If left empty and ingress is enabled, the API is exposed on the client-router's domain under the `/v1` path prefix. | `""` |
338
339
| `clientApi.image` | Container image used for the client API. | `ghcr.io/openfaasltd/uplink-api:0.1.5` |
Copy file name to clipboardExpand all lines: docs/uplink/rest-api.md
+26-12Lines changed: 26 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,15 +33,29 @@ Add the following parameters to your uplink `values.yaml` file and update the de
33
33
clientApi:
34
34
enable: true
35
35
36
-
# Domain used for client API ingress
36
+
tls:
37
+
ingress:
38
+
enabled: true
39
+
```
40
+
41
+
By default, the client-api will be exposed on the same domain as the client-router under the `/v1` path prefix. For example, if your client-router domain is `uplink.example.com`, the API will be available at `https://uplink.example.com/v1`.
42
+
43
+
If you prefer to use a separate domain for the client-api, set the `clientApi.domain` field:
44
+
45
+
```yaml
46
+
clientApi:
47
+
enable: true
48
+
49
+
# Use a dedicated domain for the client API
37
50
domain: clientapi.example.com
38
51
39
52
tls:
40
53
ingress:
41
-
# Optionally enable ingress for the Client API
42
54
enabled: true
43
55
```
44
56
57
+
When a dedicated domain is set, a separate Ingress resource is created for the client-api.
58
+
45
59
## Authentication
46
60
47
61
The Inlets Uplink client API supports authentication through a static API token or using OAuth.
Use the token as bearer token in the `Authorization` header when making requests to the API.
81
95
82
96
```sh
83
-
export CLIENT_API="https://clienapi.example.com"
97
+
export CLIENT_API="https://uplink.example.com"
84
98
export NAME="acmeco"
85
99
export NAMESPACE="acmeco"
86
100
@@ -96,7 +110,7 @@ We will be create an tunnel named `acmeco` in the `acmeco` namespace in the API
96
110
### Get a tunnel
97
111
98
112
```sh
99
-
export CLIENT_API="https://clienapi.example.com"
113
+
export CLIENT_API="https://uplink.example.com"
100
114
export NAME="acmeco"
101
115
export NAMESPACE="acmeco"
102
116
@@ -139,7 +153,7 @@ The metrics section includes rx/tx bytes per second and tcp connection rate over
139
153
### List tunnels
140
154
141
155
```sh
142
-
export CLIENT_API="https://clienapi.example.com"
156
+
export CLIENT_API="https://uplink.example.com"
143
157
export NAMESPACE="acmeco"
144
158
145
159
curl -i \
@@ -154,7 +168,7 @@ Query parameters:
154
168
### Create a tunnel
155
169
156
170
```sh
157
-
export CLIENT_API="https://clienapi.example.com"
171
+
export CLIENT_API="https://uplink.example.com"
158
172
159
173
curl -i \
160
174
-X POST \
@@ -166,7 +180,7 @@ curl -i \
166
180
### Update a tunnel
167
181
168
182
```sh
169
-
export CLIENT_API="https://clienapi.example.com"
183
+
export CLIENT_API="https://uplink.example.com"
170
184
171
185
curl -i \
172
186
-X PUT \
@@ -178,7 +192,7 @@ curl -i \
178
192
### Delete a tunnel
179
193
180
194
```sh
181
-
export CLIENT_API="https://clienapi.example.com"
195
+
export CLIENT_API="https://uplink.example.com"
182
196
export NAME="acmeco"
183
197
export NAMESPACE="acmeco"
184
198
@@ -206,7 +220,7 @@ The `kube-system` and `inlets` namespace can not be used as tunnel namespaces.
206
220
List all inlets uplink namespaces. This endpoint will list all namespaces with a label `inlets.dev/uplink=1`.
207
221
208
222
```sh
209
-
export CLIENT_API="https://clienapi.example.com"
223
+
export CLIENT_API="https://uplink.example.com"
210
224
211
225
curl -i \
212
226
-H "Authorization: Bearer ${TOKEN}" \
@@ -216,7 +230,7 @@ curl -i \
216
230
### Create a namespace
217
231
218
232
```sh
219
-
export CLIENT_API="https://clienapi.example.com"
233
+
export CLIENT_API="https://uplink.example.com"
220
234
221
235
curl -i \
222
236
-X POST \
@@ -244,7 +258,7 @@ The API supports adding additional namespace labels and annotations:
244
258
### Delete a namespace
245
259
246
260
```sh
247
-
export CLIENT_API="https://clienapi.example.com"
261
+
export CLIENT_API="https://uplink.example.com"
248
262
export NAME="acmeco"
249
263
250
264
curl -i \
@@ -271,7 +285,7 @@ You can configure any OpenID Connect (OIDC) compatible identity provider for use
271
285
272
286
# The audience is generally the same as the value of the domain field, however
273
287
# some issuers like keycloak make the audience the client_id of the application/client.
274
-
audience: "clienapi.example.com"
288
+
audience: "uplink.example.com"
275
289
```
276
290
277
291
The `issuerURL` needs to be set to the url of your provider, eg. `https://accounts.google.com` for google or `https://example.eu.auth0.com/` for Auth0.
0 commit comments