@@ -5,61 +5,21 @@ <h3 class="text-center text-3xl leading-8 font-extrabold tracking-tight text-gra
55 How it works
66 </ h3 >
77 < p class ="mt-4 max-w-3xl mx-auto text-center text-xl leading-7 text-gray-500 ">
8- Explore common setups for Uplink, HTTPS, TCP and Kubernetes .
8+ Explore common setups for HTTPS, TCP, Kubernetes, Cloud, and Uplink .
99 </ p >
1010 </ div >
1111
1212 < div class ="mt-8 rounded-3xl border border-gray-200 bg-white shadow-xl p-3 sm:p-4 ">
1313 < div class ="flex flex-wrap justify-center gap-3 " data-cli-tabs >
14- < button type ="button " class ="cli-tab-button px-4 py-2 rounded-full border border-gray-900 bg-gray-900 text-white text-sm font-medium " data-cli-tab ="uplink "> Uplink</ button >
15- < button type ="button " class ="cli-tab-button px-4 py-2 rounded-full border border-gray-300 bg-white text-gray-700 text-sm font-medium hover:border-gray-400 hover:text-gray-900 " data-cli-tab ="https "> HTTPS</ button >
14+ < button type ="button " class ="cli-tab-button px-4 py-2 rounded-full border border-gray-900 bg-gray-900 text-white text-sm font-medium " data-cli-tab ="https "> HTTPS</ button >
1615 < button type ="button " class ="cli-tab-button px-4 py-2 rounded-full border border-gray-300 bg-white text-gray-700 text-sm font-medium hover:border-gray-400 hover:text-gray-900 " data-cli-tab ="tcp "> TCP</ button >
1716 < button type ="button " class ="cli-tab-button px-4 py-2 rounded-full border border-gray-300 bg-white text-gray-700 text-sm font-medium hover:border-gray-400 hover:text-gray-900 " data-cli-tab ="kubernetes "> Kubernetes</ button >
17+ < button type ="button " class ="cli-tab-button px-4 py-2 rounded-full border border-gray-300 bg-white text-gray-700 text-sm font-medium hover:border-gray-400 hover:text-gray-900 " data-cli-tab ="cloud "> Cloud</ button >
18+ < button type ="button " class ="cli-tab-button px-4 py-2 rounded-full border border-gray-300 bg-white text-gray-700 text-sm font-medium hover:border-gray-400 hover:text-gray-900 " data-cli-tab ="uplink "> Uplink</ button >
1819 </ div >
1920
2021 < div class ="mt-4 ">
21- < section class ="cli-panel rounded-2xl shadow-2xl overflow-hidden border border-gray-800 bg-gray-900 " data-cli-panel ="uplink ">
22- < div class ="px-5 py-3 border-b border-gray-700 bg-gray-800 flex items-center justify-between ">
23- < div class ="flex items-center gap-2 ">
24- < span class ="h-3 w-3 rounded-full bg-red-400 "> </ span >
25- < span class ="h-3 w-3 rounded-full bg-yellow-400 "> </ span >
26- < span class ="h-3 w-3 rounded-full bg-green-400 "> </ span >
27- </ div >
28- < div class ="text-xs font-mono text-gray-400 "> uplink.example.com</ div >
29- </ div >
30- < div class ="px-6 py-5 border-b border-gray-700 bg-gray-900 ">
31- < div >
32- < h4 class ="text-2xl font-extrabold text-white "> Connect a customer environment to your SaaS</ h4 >
33- < p class ="mt-2 text-base leading-7 text-gray-300 "> Create a tenant-scoped tunnel, hand the customer a command, then consume the service privately from inside your cluster.</ p >
34- </ div >
35- </ div >
36- < pre class ="px-6 py-6 overflow-x-auto font-mono text-[13px] leading-7 text-gray-100 whitespace-pre-wrap "> < code > # tunnel resource
37- apiVersion: uplink.inlets.dev/v1alpha1
38- kind: Tunnel
39- metadata:
40- name: acmeco
41- namespace: tunnels
42- spec:
43- tcpPorts:
44- - 8080
45-
46- # customer connects to the router
47- inlets-pro uplink client \
48- --url wss://uplink.example.com/tunnels/acmeco \
49- --upstream http://127.0.0.1:8080 \
50- --token-file ./token.txt
51-
52- # private access from inside the cluster
53- kubectl run -t -i curl --rm \
54- --image ghcr.io/openfaas/curl:latest /bin/sh
55-
56- curl -i http://acmeco.tunnels:8000</ code > </ pre >
57- < div class ="px-6 py-4 border-t border-gray-700 bg-gray-800 ">
58- < a href ="https://docs.inlets.dev/uplink/become-a-provider/ " class ="text-sm font-medium text-indigo-300 hover:text-white "> Read the Uplink docs →</ a >
59- </ div >
60- </ section >
61-
62- < section class ="cli-panel hidden rounded-2xl shadow-2xl overflow-hidden border border-gray-800 bg-gray-900 " data-cli-panel ="https ">
22+ < section class ="cli-panel rounded-2xl shadow-2xl overflow-hidden border border-gray-800 bg-gray-900 " data-cli-panel ="https ">
6323 < div class ="px-5 py-3 border-b border-gray-700 bg-gray-800 flex items-center justify-between ">
6424 < div class ="flex items-center gap-2 ">
6525 < span class ="h-3 w-3 rounded-full bg-red-400 "> </ span >
@@ -153,6 +113,77 @@ <h4 class="text-2xl font-extrabold text-white">Expose a local Kubernetes service
153113 < a href ="https://github.com/inlets/inlets-operator/ " class ="text-sm font-medium text-indigo-300 hover:text-white "> inlets-operator →</ a >
154114 </ div >
155115 </ section >
116+
117+ < section class ="cli-panel hidden rounded-2xl shadow-2xl overflow-hidden border border-gray-800 bg-gray-900 " data-cli-panel ="cloud ">
118+ < div class ="px-5 py-3 border-b border-gray-700 bg-gray-800 flex items-center justify-between ">
119+ < div class ="flex items-center gap-2 ">
120+ < span class ="h-3 w-3 rounded-full bg-red-400 "> </ span >
121+ < span class ="h-3 w-3 rounded-full bg-yellow-400 "> </ span >
122+ < span class ="h-3 w-3 rounded-full bg-green-400 "> </ span >
123+ </ div >
124+ < div class ="text-xs font-mono text-gray-400 "> tryinlets.dev</ div >
125+ </ div >
126+ < div class ="px-6 py-5 border-b border-gray-700 bg-gray-900 ">
127+ < div >
128+ < h4 class ="text-2xl font-extrabold text-white "> Get a managed HTTPS tunnel</ h4 >
129+ < p class ="mt-2 text-base leading-7 text-gray-300 "> Install the Cloud plugin, authenticate once, create a generated tunnel, then connect it to a local service.</ p >
130+ </ div >
131+ </ div >
132+ < pre class ="px-6 py-6 overflow-x-auto font-mono text-[13px] leading-7 text-gray-100 whitespace-pre-wrap "> < code > $ inlets-pro plugin get cloud
133+ $ inlets-pro cloud auth login \
134+ --token "$(cat ~/.inlets/cloud-access-token)"
135+
136+ $ inlets-pro cloud tunnel create http inlets-landing
137+
138+ $ inlets-pro cloud tunnel connect inlets-landing \
139+ --upstream http://127.0.0.1:4000
140+
141+ inlets-pro uplink client --url=wss://cambs1.uplink.inlets.dev/user/inlets-landing --token=REDACTED --upstream=moyona.cambs1.tryinlets.dev=http://127.0.0.1:4000</ code > </ pre >
142+ < div class ="px-6 py-4 border-t border-gray-700 bg-gray-800 ">
143+ < a href ="https://cloud.inlets.dev " class ="text-sm font-medium text-indigo-300 hover:text-white "> Open Inlets Cloud →</ a >
144+ </ div >
145+ </ section >
146+
147+ < section class ="cli-panel hidden rounded-2xl shadow-2xl overflow-hidden border border-gray-800 bg-gray-900 " data-cli-panel ="uplink ">
148+ < div class ="px-5 py-3 border-b border-gray-700 bg-gray-800 flex items-center justify-between ">
149+ < div class ="flex items-center gap-2 ">
150+ < span class ="h-3 w-3 rounded-full bg-red-400 "> </ span >
151+ < span class ="h-3 w-3 rounded-full bg-yellow-400 "> </ span >
152+ < span class ="h-3 w-3 rounded-full bg-green-400 "> </ span >
153+ </ div >
154+ < div class ="text-xs font-mono text-gray-400 "> uplink.example.com</ div >
155+ </ div >
156+ < div class ="px-6 py-5 border-b border-gray-700 bg-gray-900 ">
157+ < div >
158+ < h4 class ="text-2xl font-extrabold text-white "> Connect a customer environment to your SaaS</ h4 >
159+ < p class ="mt-2 text-base leading-7 text-gray-300 "> Create a tenant-scoped tunnel, hand the customer a command, then consume the service privately from inside your cluster.</ p >
160+ </ div >
161+ </ div >
162+ < pre class ="px-6 py-6 overflow-x-auto font-mono text-[13px] leading-7 text-gray-100 whitespace-pre-wrap "> < code > # tunnel resource
163+ apiVersion: uplink.inlets.dev/v1alpha1
164+ kind: Tunnel
165+ metadata:
166+ name: acmeco
167+ namespace: tunnels
168+ spec:
169+ tcpPorts:
170+ - 8080
171+
172+ # customer connects to the router
173+ inlets-pro uplink client \
174+ --url wss://uplink.example.com/tunnels/acmeco \
175+ --upstream http://127.0.0.1:8080 \
176+ --token-file ./token.txt
177+
178+ # private access from inside the cluster
179+ kubectl run -t -i curl --rm \
180+ --image ghcr.io/openfaas/curl:latest /bin/sh
181+
182+ curl -i http://acmeco.tunnels:8000</ code > </ pre >
183+ < div class ="px-6 py-4 border-t border-gray-700 bg-gray-800 ">
184+ < a href ="https://docs.inlets.dev/uplink/become-a-provider/ " class ="text-sm font-medium text-indigo-300 hover:text-white "> Read the Uplink docs →</ a >
185+ </ div >
186+ </ section >
156187 </ div >
157188 </ div >
158189 </ div >
0 commit comments