Reuse has always been painful and elusive. There is always something not quite right between the old and the new. Adapter pattern helps in this problem.
If you are interested to knows its use in Kubernetes, then this document helps.
Adapter container is a container that transform output of the main container.
Prometheus works by querying an endpoint exposed by the target application. The endpoint must return the diagnostic data in a format that Prometheus expects. Adapter container known as exporter helps in this.
Imagine your main container generates logs in text format and external systems need to consume these logs in a JSON format. Below is the example solution using adapter container
Below example shows that left POD uses ambassador pattern and right POD uses adapter pattern.
Refer here for detail on ambassador pattern
https://sourcemaking.com/design_patterns/adapter
https://www.magalix.com/blog/the-adapter-pattern
https://images.app.goo.gl/ht6rFwzqqjy4ZNq78
https://medium.com/bb-tutorials-and-thoughts/kubernetes-learn-adaptor-container-pattern-97674285983c
https://www.linkedin.com/posts/dpkumar_kubernetes-ambassadors-cncf-activity-6786500379657023488-LTfQ
https://images.app.goo.gl/z2HZedtKmJxEhcpB7
https://www.linkedin.com/posts/dpkumar_designpatterns-containerorchestration-kubernetes-activity-6786521228871118848-ayUb