File tree Expand file tree Collapse file tree 1 file changed +51
-51
lines changed
src/content/docs/cloudflare-one/connections/connect-networks/deployment-guides Expand file tree Collapse file tree 1 file changed +51
-51
lines changed Original file line number Diff line number Diff line change @@ -217,57 +217,57 @@ To run the Cloudflare Tunnel in Kubernetes:
217217
2182181 . Create a Kubernetes deployment for a remotely-managed Cloudflare Tunnel:
219219
220- ``` yaml title="tunnel.yaml"
221- apiVersion: apps/v1
222- kind: Deployment
223- metadata:
224- name: cloudflared-deployment
225- namespace: default
226- spec:
227- replicas: 2
228- selector:
229- matchLabels :
230- pod: cloudflared
231- template:
232- metadata :
233- labels:
234- pod : cloudflared
235- spec:
236- securityContext :
237- sysctls:
238- # Allows ICMP traffic (ping, traceroute) to resources behind cloudflared.
239- - name : net.ipv4.ping_group_range
240- value: "65532 65532"
241- containers:
242- - image : cloudflare/cloudflared:latest
243- name: cloudflared
244- env:
245- # Defines an environment variable for the tunnel token.
246- - name: TUNNEL_TOKEN
247- valueFrom :
248- secretKeyRef:
249- name : tunnel-token
250- key: token
251- command:
252- # Configures tunnel run parameters
253- - cloudflared
254- - tunnel
255- - --no-autoupdate
256- - --loglevel
257- - debug
258- - --metrics
259- - 0.0.0.0:2000
260- - run
261- livenessProbe:
262- httpGet :
263- # Cloudflared has a /ready endpoint which returns 200 if and only if
264- # it has an active connection to Cloudflare's network.
265- path: /ready
266- port: 2000
267- failureThreshold: 1
268- initialDelaySeconds: 10
269- periodSeconds: 10
270- ```
220+ ``` yaml title="tunnel.yaml"
221+ apiVersion : apps/v1
222+ kind : Deployment
223+ metadata :
224+ name : cloudflared-deployment
225+ namespace : default
226+ spec :
227+ replicas : 2
228+ selector :
229+ matchLabels :
230+ pod : cloudflared
231+ template :
232+ metadata :
233+ labels :
234+ pod : cloudflared
235+ spec :
236+ securityContext :
237+ sysctls :
238+ # Allows ICMP traffic (ping, traceroute) to resources behind cloudflared.
239+ - name : net.ipv4.ping_group_range
240+ value : " 65532 65532"
241+ containers :
242+ - image : cloudflare/cloudflared:latest
243+ name : cloudflared
244+ env :
245+ # Defines an environment variable for the tunnel token.
246+ - name : TUNNEL_TOKEN
247+ valueFrom :
248+ secretKeyRef :
249+ name : tunnel-token
250+ key : token
251+ command :
252+ # Configures tunnel run parameters
253+ - cloudflared
254+ - tunnel
255+ - --no-autoupdate
256+ - --loglevel
257+ - debug
258+ - --metrics
259+ - 0.0.0.0:2000
260+ - run
261+ livenessProbe :
262+ httpGet :
263+ # Cloudflared has a /ready endpoint which returns 200 if and only if
264+ # it has an active connection to Cloudflare's network.
265+ path : /ready
266+ port : 2000
267+ failureThreshold : 1
268+ initialDelaySeconds : 10
269+ periodSeconds : 10
270+ ` ` `
271271
2722722. Deploy ` cloudflared` to the cluster:
273273
You can’t perform that action at this time.
0 commit comments