handling templates that do not expose ports on dependent services