KubernetesApiServiceDiscovery: No targets found from pod list. Is the correct port name configured? Current configuration: [None]. Ports on pods: [Set()]
I have two services ApiGateway & DalAPI where the gateway forwards requests to DAL microservice upon validating request. The issue is in my DalAPI, it seems it’s not creating pods. The architecture is similar to ShoppingCart example.
class DataaccessLoader extends LagomApplicationLoader {
override def load(context: LagomApplicationContext): LagomApplication =
new DataaccessApplication(context) with AkkaDiscoveryComponents
// ConfigurationServiceLocatorComponents
// new DataaccessApplication(context) {
// override def serviceLocator: ServiceLocator = NoServiceLocator
// }
override def loadDevMode(context: LagomApplicationContext): LagomApplication =
new DataaccessApplication(context) with LagomDevModeComponents
override def describeService = Some(readDescriptor[DataaccessService])
}
abstract class DataaccessApplication(context: LagomApplicationContext)
extends LagomApplication(context)
with CassandraPersistenceComponents
with AhcWSComponents {
override lazy val lagomServer: LagomServer = serverFor[DataaccessService](wire[DataaccessServiceImpl])
override lazy val jsonSerializerRegistry: JsonSerializerRegistry = DataaccessSerializerRegistry
// Register the DataAccess persistent entity
// Register inside the Service so we could pass config
// persistentEntityRegistry.register(wire[DataaccessEntity])
// Bind the ShoppingcartService client
lazy val shoppingCartService = serviceClient.implement[DataaccessService]
}