[ad_1]
Welcome again to the Kubernetes Mastery Sequence! On this second half, we’ll discover find out how to deploy your first utility to the Kubernetes cluster you arrange in Half 1.
Earlier than we start, guarantee that you’ve got kubectl`` configured to connect with your KinD cluster. You may examine this by operating kubectl cluster-info“. It ought to level to your KinD cluster.
Let’s begin deploying a easy NGINX net server as our first utility:
# 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 online browser
# Get the IP handle of one among your cluster nodes
# Open an online browser and navigate to <node-ip>:<NodePort>
Congratulations! You’ve efficiently deployed your first utility on Kubernetes. You may scale your deployment, handle pods, and discover numerous 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]
