Running Your First Application
Let’s deploy a simple NGINX web server in Kubernetes.
Step 1: Create Deployment
kubectl create deployment nginx --image=nginx
Step 2: Expose It
kubectl expose deployment nginx --port=80 --type=NodePort
Step 3: View It
minikube service nginx
This will open your NGINX app in the browser. You’ve just deployed and exposed your first app!