Add some validation for externalized service ports.