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: src/content/docs/cloudflare-one/connections/connect-networks/deployment-guides/kubernetes.mdx
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ To create a new Kubernetes cluster in Google Cloud:
47
47
4. Select **Authorize**.
48
48
5. Press Enter to run the pre-populated `gcloud` command.
49
49
6. (Recommended) In the Cloud Shell menu, select **Open Editor** to launch the built-in IDE.
50
-
7.Run the following command to check the cluster status:
50
+
7.In the Cloud Shell terminal, run the following command to check the cluster status:
51
51
```sh
52
52
kubectl get all
53
53
```
@@ -145,6 +145,8 @@ A pod represents an instance of a running process in the cluster. In this exampl
145
145
146
146
## 3. Create a tunnel
147
147
148
+
To create a Cloudflare Tunnel:
149
+
148
150
1. Open a new browser tab and log in to [Zero Trust](https://one.dash.cloudflare.com).
149
151
150
152
2. Go to **Networks** > **Tunnels**.
@@ -153,7 +155,7 @@ A pod represents an instance of a running process in the cluster. In this exampl
153
155
154
156
4. Choose **Cloudflared** for the connector type and select **Next**.
155
157
156
-
5. Enter a name for your tunnel (for example, `gke`).
158
+
5. Enter a name for your tunnel (for example, `gke-tunnel`).
157
159
158
160
6. Select **Save tunnel**.
159
161
@@ -167,7 +169,7 @@ Leave the Cloudflare Tunnel browser tab open while we focus on the Kubernetes de
167
169
168
170
## 4. Store the tunnel token
169
171
170
-
Create a [Kubernetes secret](https://kubernetes.io/docs/concepts/configuration/secret/) that contains the tunnel token. The tunnel token must be encoded as a base64-encoded string before it can be stored in the secret. The encoding is not meant to protect the token from being read but to allow for the safe handling of binary data within Kubernetes.
172
+
`cloudflared` uses a tunnel token to run a remotely-managed Cloudflare Tunnel. You can store the tunnel token in a [Kubernetes secret](https://kubernetes.io/docs/concepts/configuration/secret/), which requires data to be encoded as a base64-encoded string. The encoding is not meant to protect the token from being read but to allow for the safe handling of binary data within Kubernetes.
171
173
172
174
1. Convert the tunnel token into base64 format:
173
175
@@ -211,6 +213,8 @@ Create a [Kubernetes secret](https://kubernetes.io/docs/concepts/configuration/s
211
213
212
214
## 5. Create pods for cloudflared
213
215
216
+
To run the Cloudflare Tunnel in Kubernetes:
217
+
214
218
1. Create a Kubernetes deployment for a remotely-managed Cloudflare Tunnel:
215
219
216
220
```yaml title="tunnel.yaml"
@@ -244,7 +248,7 @@ Create a [Kubernetes secret](https://kubernetes.io/docs/concepts/configuration/s
244
248
name: tunnel-token
245
249
key: token
246
250
command:
247
-
#Pay attention to the order of commands. For example, --loglevel, --no-autoupdate, and --metrics come before the "run" command, while --token comes after the "run" command.
251
+
#Parameters must be in the correct order relative to the "run" command.
248
252
- cloudflared
249
253
- tunnel
250
254
- --no-autoupdate
@@ -301,7 +305,7 @@ Create a [Kubernetes secret](https://kubernetes.io/docs/concepts/configuration/s
You should see two `cloudflared` pods and two `httpbin` pods with a `Running` status. If your `cloudflared` pods keep restarting, make sure that your `cloudflared`[parameters](/cloudflare-one/connections/connect-networks/configure-tunnels/cloudflared-parameters/run-parameters/) are in the correct position relative to the `run` command.
308
+
You should see two `cloudflared` pods and two `httpbin` pods with a `Running` status. If your `cloudflared` pods keep restarting, make sure that your `cloudflared`[run parameters](/cloudflare-one/connections/connect-networks/configure-tunnels/cloudflared-parameters/run-parameters/) are in the correct order. In the example above, `--loglevel`, `--no-autoupdate`, and `--metrics` should come before the `run` command, while `--token` comes after the `run` command.
0 commit comments