This is one of the problems we solve at Algorithmia. We have a senior engineer set to do a lightning talk at Kubecon next month, on the topic: https://events19.linuxfoundation.org/events/kubecon-cloudnat.... If you’re interested in working on the problem, reach out to me.