AI Products
AI LabsOpenAI AgentsClaude AgentsGrok BotWorkstation CRM (WSL CRM)MarketingAll Products
AI Solutions
Applied AIAI AgentsGenerative AIAI AutomationAI UpskillingAI SME PackagesEnterprise AI LabAI WorkstationsPrivate AIGPU ClustersEdge AIAI by Industry
AI Services
Platform ModernisationDigital EngineeringData Foundations & AIAutonomous OperationsAI ConsultancyDevOps AutomationCyber SecuritySoftware DevelopmentAgent BuildingMLOps Setup
About Us
PartnersCustomer Stories
AI InsightsJev seriesBenchmark LabModel selection
Articles
Documentation
ToolsWSL ProxyRing PromoterWSL VaultJobshoutSysOps 24/7
News
Blog
Contact UsLogin

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

Contact Us

AI Solutions

Applied AIAI AgentsGenerative AIAI AutomationAI UpskillingAI SME PackagesEnterprise AI LabAI by Industry

Products

All ProductsWSL CRM & ERPMarketingOpenAI AgentsWSL ProxyRing PromoterWSL VaultJobshoutSysOps 24/7

Company

About UsWhy WorkstationPartnersCustomer StoriesPricingContact

Resources

AI InsightsArticlesDocumentationBlogSearchSitemap
UK Office
77-79 Marlowes, Hemel Hempstead HP1 1LFDirections - Take Junction 20 off M25 Outer LondonCompany No: 11641870Mon - Fri: 9:00 AM - 6:00 PM GMT
+44 7515 356 146
Belgium Office
Workstation SRL, Rue Vanderkindere 34, 1180 Uccle, BrusselsBE 0751.518.683Mon - 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

© 2026 Workstation AI. All rights reserved.

PrivacyCookiesTerms of ServiceWebsite Sitemap

Loading blog...

Home / Blogs
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.