Home Software Engineering Kubernetes Mastery: Half 2 – Deploying Your First App

Kubernetes Mastery: Half 2 – Deploying Your First App

0
Kubernetes Mastery: Half 2 – Deploying Your First App

[ad_1]

Welcome again to the Kubernetes Mastery Sequence! On this second half, we’ll discover easy methods to 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 possibly can test this by working kubectl cluster-info“. It ought to level to your KinD cluster.

Let’s begin deploying a easy NGINX net 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 possibly can scale your deployment, handle pods, and discover varied Kubernetes assets as you proceed your journey within the Kubernetes Mastery Sequence.

Keep tuned for the subsequent half in our Kubernetes Mastery Sequence:
Half 3 – Exploring Kubernetes Assets

[ad_2]