I can’t figure out (the first steps in configuring kubernetes) what is needed for the configuration.
I have:
- kubernes cluster
- deployed application in
ping-pong-cluster
namespace - cassandra cluster
cluster1-dc1-all-pods-service
deploed with cass-operator incass-operator
namespace - configs
lagom.akka.discovery.service-name-mappings.cas_native.lookup=_native._tcp.cluster1-dc1-service.cass-operator.svc.cluster.local
akka.discovery.method=kubernetes-api
kubectl exec -n ping-pong-cluster dnsutils -- nslookup _native._tcp.cluster1-dc1-service.cass-operator.svc.cluster.local
found:
Name: _native._tcp.cluster1-dc1-service.cass-operator.svc.cluster.local
Address: 10.244.2.6
But one problem:
[2021-04-01 19:09:23,550] [INFO] [akka.discovery.kubernetes.KubernetesApiServiceDiscovery] [] [application-akka.actor.default-dispatcher-12] - Querying for pods with label selector: [app=cluster1-dc1-service.cass-operator.svc.cluster.local]. Namespace: [ping-pong-cluster]. Port: [Some(native)] MDC: {akkaAddress=akka://application@10.244.2.68:25520, sourceThread=application-lagom.persistence.dispatcher-34, akkaSource=KubernetesApiServiceDiscovery(akka://application), sourceActorSystem=application, akkaTimestamp=19:09:23.550UTC}
as I understand it the lookup takes place in a different namespace