Text Lecture: Your First Kubernetes Application Commands

Commands

kubectl apply -f ./deployment.yaml
kubectl expose deployment tomcat-deployment --type=NodePort
minikube service tomcat-deployment --url
curl <URL>


Trouble Shooting

Unable to connect to the server: dial tcp 192.168.99.100:8443: i/o timeout

Solution:

Ensure minikube is up before running any kubectl command

  • check the minikube status: minikube status
  • start minikube: minikube start

Complete and Continue