Complete the command to forward local port 8080 to pod port 80.
kubectl port-forward [1] 8080:80
You need to specify the pod name with pod/ prefix to forward ports directly to a pod.
Complete the command to forward local port 5000 to port 5000 of pod named 'web-app'.
kubectl port-forward [1] 5000:5000
The pod name must be exact and prefixed with pod/. Here, 'web-app' is the pod name.
Fix the error in the command to forward port 8080 to pod 'api-server'.
kubectl port-forward [1] 8080:8080
The resource type pod/ must prefix the pod name to avoid errors.
Fill both blanks to forward local port 3000 to pod 'frontend' port 80 and local port 5000 to pod 'backend' port 5000.
kubectl port-forward [1] 3000:80 & kubectl port-forward [2] 5000:5000
Use pod/frontend and pod/backend to forward ports directly to the pods.
Fill all three blanks to create a port-forward command that forwards local port 9090 to pod 'db' port 5432, and local port 8080 to pod 'cache' port 6379.
kubectl port-forward [1] [2]:5432 & kubectl port-forward [3] 8080:6379
The first command forwards local port 9090 to pod 'db' port 5432. The second forwards local port 8080 to pod 'cache' port 6379.