[setting up an NGINX Ingress Controller]
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.27.0/deploy/static/mandatory.yaml

[Deploying a Sample Application]
$ kubectl run myapp --image=nginx

[Accessing the Application]
$ kubectl expose pod myapp --port=80 --name myapp-service --type=NodePort

[To view the Service details]
$ kubectl get svc | grep myapp-service
$ kubectl describe svc/myapp-service
