🔥 3-day streak
Certified Kubernetes Administrator (CKA)90 / 125
Question 90 of 125
You are exposing a legacy monitoring application on a bare-metal cluster using a Service of type NodePort. You attempt to apply the following manifest, which explicitly requests nodePort 8080, but the API server rejects it with a validation error: 'provided port is not in the valid range. The range of valid ports is 30000-32767'. The application inside the Pod listens on container port 8080, and the Service targetPort is set to 8080. What is the correct way to resolve this while keeping the Service type as NodePort?
Reviewed for accuracy · Report an issueNext question