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
Copy file name to clipboardExpand all lines: blog/_posts/2024-12-09-quickstart-uplink.md
+12-8
Original file line number
Diff line number
Diff line change
@@ -218,7 +218,8 @@ Then get the connection string, you can format this as a CLI command or as Kuber
218
218
```sh
219
219
inlets-pro tunnel connect \
220
220
fileserver \
221
-
--domain us1.uplink.example.com
221
+
--namespace inlets \
222
+
--domain https://$CLIENT_ROUTER_DOMAIN
222
223
```
223
224
224
225
The default output is for a CLI command you can run on your machine:
@@ -290,17 +291,20 @@ docker run --rm --name postgres \
290
291
-ti postgres:latest
291
292
```
292
293
293
-
*Connect with an inlets uplink client*
294
+
**Connect with an inlets uplink client**
294
295
295
296
```bash
296
-
inlets-pro connect \
297
-
--url wss://us1.uplink.example.com/inlets/db1 \
297
+
inlets-pro tunnel connect db1 \
298
+
--namespace inlets \
299
+
--domain https://$CLIENT_ROUTER_DOMAIN \
298
300
--upstream 127.0.0.1:5432
299
301
```
300
302
301
-
Run the above command on your local machine.
303
+
Run the above command on your local machine to generate the tunnel client command.
304
+
305
+
Then run it on your local machine to connect to the tunnel.
302
306
303
-
*Access the customer database from within Kubernetes*
307
+
**Access the customer database from within Kubernetes**
304
308
305
309
Now that the tunnel is established, you can connect to the customer's Postgres database from within Kubernetes using its ClusterIP `db1.inlets.svc.cluster.local`:
306
310
@@ -386,9 +390,9 @@ You can build a connection command using the `inlets-pro tunnel connect` command
0 commit comments