Kubernetes Setup On Ubuntu 22.04

Deploy Your First Workload

Deploy a simple NGINX pod and service on your Kubernetes cluster.

1 min read

๐Ÿš€ Step 5: Deploy Your First Workload

With your Kubernetes cluster set up and the pod network installed, it's time to deploy a simple application.


๐Ÿ“ Create an NGINX Deployment

Create a deployment with the official NGINX image:

bash

๐Ÿš€ Expose the Deployment

Expose it as a service on port 80:

bash

๐Ÿ” Verify Deployment and Service

Check the pods status:

bash

Check the service details and port:

bash

๐Ÿ”— Access the NGINX Server

Use the Node IP and the assigned NodePort to access your NGINX server via browser or curl.


โญ Next Steps

Continue by exploring scaling, updates, and managing your workloads.