kubectl get pods


kubectl logs -f deployment/nginx-app

kubectl top nodes
kubectl top pods
kubectl top pod <pod-name>

kubectl describe pod <pod-name>


#in terminal 1:
kubectl port-forward deployment/nginx-app 8080:80

# in terminal 2:
# keep this running
for i in {1..20}; do curl -s http://localhost:8080 > /dev/null; done

#return to terminal 1:
kubectl logs deployment/nginx-app
