Skip to content

🏠 Cloudflare Stream Kubernetes Failover

Cloudflare Stream runs a small Kubernetes cluster for OTFE failover in Google Kubernetes Engine (GKE). In case we have failures in our core data center or something is affecting our ability to encode segments, we can failover to GKE to remain operational.

This document walks through the end-to-end setup explaining how the cluster is configured, network topology, how to initialize the cluster from scratch and how to debug.

Quick Start


  • make init - Initialize Terraform state
  • make [use-staging,use-prod] - Select proper environment
  • make [plan,apply] - Verify cluster provisioning for GKE & apply it
  • make bootstrap - Bootstrap the cluster
  • make login-cluster - Login to Kubernetes cluster

Kubernetes namespaces

We use the following namespace conventions for the respective environments configured.

  • otfe-staging
  • otfe-production
  • ingress