Deploy Your First Kubernetes Workload
Learn how to deploy your first application workload on Kubernetes.
1 min read
๐ Deploy Your First Kubernetes Workload
Now that your cluster control plane is set up and the pod network is installed, it's time to deploy your first workload.
๐ฆ Step 1: Create a Deployment
Create a simple Nginx deployment using kubectl:
bash
๐ Step 2: Verify the Deployment
Check the status of your deployment and pods:
bash
You should see your Nginx pod running.
๐ Step 3: Expose the Deployment
Expose your deployment as a service to make it accessible:
bash
๐ Step 4: Check the Service
List your services and note the NodePort assigned:
bash
Access the service by visiting
bash
Replace <node-ip> with your node's IP and <node-port> with the port from the previous step.
๐ Congratulations!
You've successfully deployed your first application on Kubernetes!
โญ Next Steps
- Learn about scaling your deployment
- Set up Persistent Volumes and Storage
- Explore advanced networking options