Add some validation for externalized service ports.

Update comment.