How do you deploy workloads using the Rancher UI?
Quick Answer
You deploy workloads in Rancher by navigating to the Cluster Explorer, selecting Workloads, and clicking 'Create.' Rancher provides a form-based interface where you specify the container image, replica count, port mappings, environment variables, and resource limits. The UI generates the underlying Kubernetes manifests and applies them to the cluster.
Detailed Answer
Deploying a workload through Rancher is like ordering from a restaurant menu instead of cooking from scratch. You choose what you want (container image, ports, replicas), specify your preferences (environment variables, resource limits), and Rancher handles the preparation (generates YAML manifests and applies them to the cluster). You get the same result as writing kubectl commands, but with guardrails and visual feedback.
To deploy a workload, you navigate to the Cluster Explorer for your target cluster, click on Workloads in the left sidebar, and then click the 'Create' button. Rancher presents a form with several sections. The Container section is where you specify the Docker image (like registry.example.com/payments-api:v2.3.0), pull policy, and command overrides. The Ports section lets you define container ports and optionally create a matching Service. The Environment Variables section accepts key-value pairs or references to ConfigMaps and Secrets. The Resources section lets you set CPU and memory requests and limits. You also choose the workload type: Deployment, StatefulSet, DaemonSet, CronJob, or Job.
Behind the scenes, when you click 'Create,' Rancher translates your form inputs into a standard Kubernetes manifest and applies it to the cluster through the Kubernetes API. You can switch to the YAML view at any time to see and edit the raw manifest before applying. This dual-mode approach is valuable for learning: beginners can use the form to understand which fields matter, then examine the generated YAML to build their kubectl skills. For teams with strict GitOps requirements, the YAML view lets them copy the manifest into their Git repository after prototyping in the UI.
In production environments, teams often start by deploying workloads through the Rancher UI during initial setup or rapid prototyping, then transition to GitOps workflows using Rancher Fleet or ArgoCD for production deployments. The UI deployment is still valuable for one-off tasks like deploying a debugging pod, running a database migration job, or scaling a deployment during an incident. For example, during a traffic spike for the order-service, an on-call engineer can quickly scale from 3 to 10 replicas through the Rancher UI without needing to find the right kubeconfig or remember kubectl syntax.
A feature beginners often miss is the ability to deploy from the Rancher App Catalog directly within the workloads view. Helm charts from the catalog are integrated into the same UI, allowing you to deploy complex applications like Redis, PostgreSQL, or an entire monitoring stack with pre-configured defaults. The Rancher UI also supports rolling updates, rollbacks to previous revisions, and pod shell access, making it a complete deployment management interface.