Kubernetes Setup On Ubuntu 22.04

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

๐Ÿ‘‰ Continue to Page 6: Scale Your Deployments โ†’