Keep a Service target aligned with a container port
Example input
app: demo
containerPort: 8080
targetPort: 8080Expected result
targetPort: 8080Use the same intended application port for the container and Service target, and inspect the selector labels in the complete manifests. The excerpt shows the target-port decision rather than a deployable resource by itself. Confirm that the process actually listens on that port and that the cluster's networking and exposure rules fit the intended audience.