Previous Lecture Complete and continue  

  Text Lecture: Your First Kubernetes Application 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 i/o timeout


Ensure minikube is up before running any kubectl command

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