Skip to content

Commit 128a782

Browse files
committed
k8 overview
1 parent f49a15e commit 128a782

File tree

1 file changed

+26
-2
lines changed
  • src/content/docs/cloudflare-one/connections/connect-networks/deployment-guides

1 file changed

+26
-2
lines changed

src/content/docs/cloudflare-one/connections/connect-networks/deployment-guides/kubernetes.mdx

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,35 @@
11
---
2-
pcx_content_type: how-to
2+
pcx_content_type: tutorial
33
title: Kubernetes
44
sidebar:
55
order: 6
66
---
77

8-
[Kubernetes](https://kubernetes.io/) is a container orchestration and management tool. Kubernetes is declarative, so you define the end state in a .yml file. A Kubernetes cluster has two components, the master, and the workers. The master is the control plane that the user interacts with to manage the containers. Worker nodes are where the containers are deployed and run. A Kubernetes cluster is connected internally through a private network. Cloudflare Tunnel can be used to expose services running inside the Kubernetes cluster to the public.
8+
[Kubernetes](https://kubernetes.io/) is a container orchestration tool that helps deploy applications onto physical or virtual machines, scale the deployment, and push updates without downtime. The Kubernetes cluster, or environment, where the application instances are running is connected internally through a private network. You can install the `cloudflared` daemon inside of the Kubernetes cluster in order to connect the applications inside of the cluster to Cloudflare.
9+
10+
![placeholder](~/assets/images/cloudflare-one/connections/connect-apps/handshake.jpg)
11+
12+
As shown in the diagram, `cloudflared` runs as an adjacent deployment to the application deployments. `cloudflared` runs a Cloudflare Tunnel using a token and gains access to the Internet through the Kubernetes ingress controller. Once the cluster is connected to Cloudflare, you can add tunnel routes to control how `cloudflared` will proxy traffic to your Kubernetes services. For example, you could publish your Kubernetes application to the Internet or provide access only to internal WARP client users. Just like with other Kubernetes deployments, Kubernetes can spin up multiple replicas of `cloudflared` to ensure availability when incoming trafic changes. For more information about scaling Cloudflare Tunnel, refer to [Tunnel availability and failover](/cloudflare-one/connections/connect-networks/configure-tunnels/tunnel-availability/).
13+
14+
This tutorial will cover how to expose a Kubernetes service to the public Internet using `cloudflared`. For the purposes of this example, we will deploy a basic web application alongside `cloudflared` in Google Kubernetes Engine (GKE). The same principles apply to any other Kubernetes environment (such as `minikube` or `kubeadm`, or a cloud-based Kubernetes service) where `cloudflared` can connect to Cloudflare's network.
15+
16+
## Create a tunnel
17+
18+
Applications must be packaged into a containerized image, such as a Docker image, before you can run it in Kubernetes. Kubernetes uses the image to spin up multiple instances of the application.
19+
20+
## Store the tunnel token
21+
22+
## Set up the web app
23+
24+
## Install and run the tunnel
25+
26+
## Verify tunnel status
27+
28+
## Add a tunnel route
29+
30+
## Test the connection
31+
32+
933

1034
## Creating the Kubernetes Cluster
1135

0 commit comments

Comments
 (0)