canonical / mongodb-operator

Charmed solution for MongoDB
Apache License 2.0
12 stars 14 forks source link

[DPE-5040] - make necessary lib changes for mongos-k8s connections with config-server #456

Closed MiaAltieri closed 3 months ago

MiaAltieri commented 3 months ago

Issue

The k8s router has a slightly different implementation from the VM router. This means that the current lib that supports the router interface does not work with K8s

Namely the following has a different implementation on the K8s router:

  1. sharing user info to client
  2. k8s router communicates via port
  3. k8s router updates arguments when changing the pebble layer on restart

Solution

To fix this some cases have been made in the charm lib

  1. k8s charm does not provide its admin user/password to the client (instead it will handle this with the mongos_client interface in DPE-5090
  2. communicate via port in K8s
  3. dont make a call to update mongos args in K8s