Get the kubeconfig credentials from MongoDB