π How to Install Rancher Desktop on Windows 11 and Deploy a Sample Application π
Are you looking to get started with Rancher Desktop on your Windows 11 machine? Youβre in the right place! In this blog, I'll walk you through the simple steps to install Rancher Desktop and deploy your first sample application.
π‘ What You Will Learn:
-
How to install Rancher Desktop on Windows 11.
-
How to deploy a sample Kubernetes application.
Step 1: Install Rancher Desktop on Windows 11 βοΈ
Rancher Desktop simplifies running Kubernetes on your local machine, and it's super easy to set up!
-
Download Rancher Desktop: Head over to the official Rancher Desktop download page and download the Windows version.
-
Install Rancher Desktop:
Run the installer.
-
Follow the installation wizard. Make sure you enable the
Kubernetessupport during installation. -
First Run: Launch Rancher Desktop. Choose the Kubernetes version you want to run. The app will set everything up automatically!
πΌοΈ Screenshot Pause: Hereβs how Rancher Desktop should look after the installation:
(Insert Screenshot of Rancher Desktop running with Kubernetes options)
Step 2: Configure Kubernetes and Verify the Installation π οΈ
After installation, letβs verify if everything is working.
- Open PowerShell or Windows Terminal and run:
kubectl version --client
- You should see the version of
kubectlrunning. This confirms that Rancher Desktop has set up Kubernetes for you.
πΌοΈ Screenshot Pause: Verifying kubectl version.
Step 3: Deploying a Sample Application ποΈ
Now that you have Rancher Desktop and Kubernetes running, letβs deploy a simple app to make sure everything works.
- Create a sample YAML file: Open a text editor and paste the following Kubernetes deployment config:
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-world
spec:
replicas: 2
selector:
matchLabels:
app: hello-world
template:
metadata:
labels:
app: hello-world
spec:
containers:
- name: hello-world
image: "karthequian/helloworld:latest"
ports:
- containerPort: 80
- Apply the YAML file: Save the file as
hello-world.yamland run the following command in PowerShell:
kubectl apply -f hello-world.yaml
- Check the status: Run this command to check if your deployment is up and running:
kubectl get pods
πΌοΈ Screenshot Pause: Checking the status of pods after deployment.
Step 4: Expose the Application π
Now that the app is running, letβs expose it to access it from your browser:
- Run the following command:
kubectl expose deployment hello-world --type=LoadBalancer --port=8080
- Get the URL: Use this command to get the external URL:
kubectl get svc
- Access the App: Open the displayed URL in your browser, and you should see a simple βHello Worldβ app!
π Congrats! You've Deployed Your First Application on Rancher Desktop!
Youβve successfully set up Rancher Desktop, deployed a Kubernetes app, and exposed it to the world. Feel free to play around with more apps and configurations!
π Connect with me:
-
πΌ LinkedIn: https://www.linkedin.com/in/rifaterdemsahin/
-
π¦ Twitter: https://x.com/rifaterdemsahin
-
π₯ YouTube: https://www.youtube.com/@RifatErdemSahin
-
π» GitHub: https://github.com/rifaterdemsahin
Stay tuned for more Kubernetes and Rancher Desktop tips! π©βπ»π¨βπ»
Imported from rifaterdemsahin.com Β· 2025