Kubernetes Mastery: Half 2 – Deploying Your First App


Welcome again to the Kubernetes Mastery Sequence! On this second half, we’ll discover how you can deploy your first software to the Kubernetes cluster you arrange in Half 1.

Earlier than we start, guarantee that you’ve kubectl`` configured to hook up with your KinD cluster. You'll be able to verify this by operating kubectl cluster-info“. It ought to level to your KinD cluster.

Let’s begin deploying a easy NGINX internet server as our first software:

# Step 1: Deploy NGINX as a Kubernetes Deployment
kubectl create deployment nginx-deployment --image=nginx

# Step 2: Expose the NGINX Deployment as a Kubernetes Service
kubectl expose deployment nginx-deployment --port=80 --type=NodePort

# Step 3: Discover the NodePort
kubectl get svc nginx-deployment

# Step 4: Entry the NGINX service utilizing an internet browser
# Get the IP handle of one among your cluster nodes
# Open an internet browser and navigate to <node-ip>:<NodePort>

Congratulations! You’ve efficiently deployed your first software on Kubernetes. You’ll be able to scale your deployment, handle pods, and discover numerous Kubernetes sources as you proceed your journey within the Kubernetes Mastery Sequence.

Keep tuned for the following half in our Kubernetes Mastery Sequence:
Half 3 – Exploring Kubernetes Sources

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles