A developer needs to expose a deployment named 'web-app' running in the 'default' namespace on port 8080 internally within the cluster. Which kubectl command creates a ClusterIP service that selects pods with label 'app: web'?
Correctly specifies the selector 'app=web' and exposes port 8080.
Why this answer
The correct command uses 'kubectl expose' with the appropriate flags to create a ClusterIP service targeting port 8080 and selecting pods with label 'app=web'.