Skip to content

Commit 6459614

Browse files
committed
Update syntax for connect command
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent dd183b4 commit 6459614

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

Diff for: blog/_posts/2024-12-09-quickstart-uplink.md

+12-8
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ Then get the connection string, you can format this as a CLI command or as Kuber
218218
```sh
219219
inlets-pro tunnel connect \
220220
fileserver \
221-
--domain us1.uplink.example.com
221+
--namespace inlets \
222+
--domain https://$CLIENT_ROUTER_DOMAIN
222223
```
223224
224225
The default output is for a CLI command you can run on your machine:
@@ -290,17 +291,20 @@ docker run --rm --name postgres \
290291
-ti postgres:latest
291292
```
292293
293-
*Connect with an inlets uplink client*
294+
**Connect with an inlets uplink client**
294295
295296
```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 \
298300
--upstream 127.0.0.1:5432
299301
```
300302
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.
302306
303-
*Access the customer database from within Kubernetes*
307+
**Access the customer database from within Kubernetes**
304308
305309
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`:
306310
@@ -386,9 +390,9 @@ You can build a connection command using the `inlets-pro tunnel connect` command
386390
export CLIENT_ROUTER=us1.uplink.example.com
387391
388392
inlets-pro tunnel connect kube1 \
389-
--domain $CLIENT_ROUTER \
390-
--format k8s_yaml \
391393
--namespace inlets \
394+
--domain https://$CLIENT_ROUTER_DOMAIN \
395+
--format k8s_yaml \
392396
--upstream kubernetes.default.svc:443 > kube1-client.yaml
393397
```
394398

0 commit comments

Comments
 (0)