Workstation Logo
Products
AI LabsOpenAI AgentsCRMMarketingAll Products
AI Solutions
AI WorkstationsAI SME PackagesPrivate AIGPU ClustersEdge AIEnterprise AI LabAI by Industry
Services
Platform ModernisationDigital EngineeringData Foundations & AIAutonomous OperationsAI ConsultancyDevOps AutomationCyber SecuritySoftware DevelopmentAgent BuildingMLOps Setup
About Us
PartnersCustomer Stories
Articles
Documentation
WSL ProxyRing Promoter
Blog
Contact UsLogin
Workstation

AI workstations, AI Multi Agentic Software, GPU infrastructure, and intelligent agent solutions for modern businesses.

UK Office: 77-79 Marlowes, Hemel Hempstead HP1 1LF - Directions - Take Junction 20 off M25 Outer London
Company No: 11641870
Mon - Fri: 9:00 AM - 6:00 PM GMT
+44 7515 356 146

Belgium Office: Workstation SRL, Rue Vanderkindere 34, 1180 Uccle, Brussels
BE 0751.518.683
Mon - Fri: 9:00 AM - 6:00 PM CET
+32 492 45 67 46

India Office: #159 Sector 9, Pocket 1, DDA Flats, 110077 Dwarka, New Delhi
+91 98881 98841

Products

All ProductsWSL ProxyRing PromoterAI LabsOpenAI Agents

AI Solutions

AI SolutionsAI WorkstationsPrivate AIGPU ClustersEnterprise AI LabServices

Resources

ArticlesDocumentationBlogSearch

Company

About UsPartnersContact

© 2026 Workstation AI. All rights reserved.

PrivacyCookies

Loading blog...

Home / Blog
DevOpsKubernetesRke2

Building Production Kubernetes Clusters with RKE2 and Longhorn

RKE2 & Longhorn Production Setup

Balinder WaliaMay 27, 20252 min read

Step-by-Step Guide: Building a Production Kubernetes Cluster with Rancher RKE2 & Longhorn

Kubernetes Cluster Architecture (RKE2)Control Plane NodesNode 1 (Leader)API ServeretcdSchedulerNode 2API ServeretcdController MgrNode 3API ServeretcdController MgrWorker NodesWorker 1kubeletkube-proxyPodsWorker 2kubeletkube-proxyPodsCanal CNI Network Layer (Pod-to-Pod Communication)Longhorn Distributed Storage LayerHA configuration with 3 control plane nodes and auto-failover

Step 1: Install RKE2

  1. Download the RKE2 installer from the official Rancher website.
  2. Run curl -sfL https://get.rke2.io | sh - on each node.
  3. Start the RKE2 service: systemctl enable rke2-server && systemctl start rke2-server

Step 2: Deploy Longhorn for Storage

Longhorn Distributed Storage IntegrationApp Pod APVC ClaimApp Pod BPVC ClaimApp Pod CPVC ClaimStatefulSetPVC ClaimLonghorn CSI Driver & EngineVolume Scheduling & Replication ManagerWorker Node 1Replica A1 & B1SSD StorageiSCSI TargetWorker Node 2Replica A2 & C1SSD StorageiSCSI TargetWorker Node 3Replica B2 & C2SSD StorageiSCSI TargetEach volume is replicated across nodes for high availability
  1. Install Helm: curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
  2. Add Longhorn repo: helm repo add longhorn https://charts.longhorn.io
  3. Install Longhorn: helm install longhorn longhorn/longhorn --namespace longhorn-system --create-namespace

Architecture Diagram

Kubernetes Cluster Architecture Diagram

Tech Notes

  • Use SSD storage for best performance.
  • Ensure all nodes have unique hostnames and static IPs.
  • Configure firewalls to allow Kubernetes ports.

How To: Verify Cluster Health

kubectl get nodes
kubectl get pods -A
kubectl get storageclass

Best YouTube Video Guides

  • Kubernetes Tutorial for Beginners [TechWorld with Nana]
  • Kubernetes Full Course - Learn Kubernetes in 8 Hours | Kubernetes Tutorial | Edureka
  • Rancher RKE2 Kubernetes Cluster Setup [Rancher Labs]
  • Longhorn Storage for Kubernetes [TechWorld with Nana]
  • Kubernetes Explained in 15 Minutes [Academind]
  • Kubernetes Networking Deep Dive [Google Cloud Tech]
  • Longhorn Storage for Kubernetes [TechWorld with Nana]
  • Kubernetes Security Best Practices [TechWorld with Nana]

Video Walkthroughs







Extra Resources

  • Rancher RKE2 Official Documentation
  • Longhorn Storage Official Docs
  • Kubernetes Official Documentation

Common Issues & Troubleshooting

  • Node not joining: Check firewall and token.
  • Longhorn pods not running: Verify storage class and node labels.
  • Network issues: Review CNI plugin configuration.