diff --git a/src/content/docs/cloudflare-one/connections/connect-networks/deployment-guides/kubernetes.mdx b/src/content/docs/cloudflare-one/connections/connect-networks/deployment-guides/kubernetes.mdx index 47f118a1d9fc45..bab0472b5c8094 100644 --- a/src/content/docs/cloudflare-one/connections/connect-networks/deployment-guides/kubernetes.mdx +++ b/src/content/docs/cloudflare-one/connections/connect-networks/deployment-guides/kubernetes.mdx @@ -217,57 +217,57 @@ To run the Cloudflare Tunnel in Kubernetes: 1. Create a Kubernetes deployment for a remotely-managed Cloudflare Tunnel: - ```yaml title="tunnel.yaml" - apiVersion: apps/v1 - kind: Deployment - metadata: - name: cloudflared-deployment - namespace: default - spec: - replicas: 2 - selector: - matchLabels: - pod: cloudflared - template: - metadata: - labels: - pod: cloudflared - spec: - securityContext: - sysctls: - # Allows ICMP traffic (ping, traceroute) to resources behind cloudflared. - - name: net.ipv4.ping_group_range - value: "65532 65532" - containers: - - image: cloudflare/cloudflared:latest - name: cloudflared - env: - # Defines an environment variable for the tunnel token. - - name: TUNNEL_TOKEN - valueFrom: - secretKeyRef: - name: tunnel-token - key: token - command: - # Configures tunnel run parameters - - cloudflared - - tunnel - - --no-autoupdate - - --loglevel - - debug - - --metrics - - 0.0.0.0:2000 - - run - livenessProbe: - httpGet: - # Cloudflared has a /ready endpoint which returns 200 if and only if - # it has an active connection to Cloudflare's network. - path: /ready - port: 2000 - failureThreshold: 1 - initialDelaySeconds: 10 - periodSeconds: 10 - ``` + ```yaml title="tunnel.yaml" + apiVersion: apps/v1 + kind: Deployment + metadata: + name: cloudflared-deployment + namespace: default + spec: + replicas: 2 + selector: + matchLabels: + pod: cloudflared + template: + metadata: + labels: + pod: cloudflared + spec: + securityContext: + sysctls: + # Allows ICMP traffic (ping, traceroute) to resources behind cloudflared. + - name: net.ipv4.ping_group_range + value: "65532 65532" + containers: + - image: cloudflare/cloudflared:latest + name: cloudflared + env: + # Defines an environment variable for the tunnel token. + - name: TUNNEL_TOKEN + valueFrom: + secretKeyRef: + name: tunnel-token + key: token + command: + # Configures tunnel run parameters + - cloudflared + - tunnel + - --no-autoupdate + - --loglevel + - debug + - --metrics + - 0.0.0.0:2000 + - run + livenessProbe: + httpGet: + # Cloudflared has a /ready endpoint which returns 200 if and only if + # it has an active connection to Cloudflare's network. + path: /ready + port: 2000 + failureThreshold: 1 + initialDelaySeconds: 10 + periodSeconds: 10 + ``` 2. Deploy `cloudflared` to the cluster: @@ -342,4 +342,4 @@ Now that the tunnel is up and running, we can use the Zero Trust dashboard to ro To test, open a new browser tab and go to `httpbin..com`. You should see the httpbin homepage. -You can optionally [create an Access application](/cloudflare-one/applications/configure-apps/self-hosted-public-app/) to control who can access the service. \ No newline at end of file +You can optionally [create an Access application](/cloudflare-one/applications/configure-apps/self-hosted-public-app/) to control who can access the service.