I’m very new to Terraform and I’m trying to determine if there is any interplay between the Docker and Kubernetes providers as we have an existing terraform configuration that makes heavy use of the Docker provider and I would like to reuse that as much as possible.
Since there are many docker containers defined within the current configuration, is it possible, for example, to pass these container/image resources to a Kubernetes pod resource (rather than separately defining the containers within the spec) via their resource ID or label?
Additionally, is it possible to have multiple modules feed into a single resource (like a partial class or something like that)? Or is it strictly a one-way one-to-many relationship (module to resource).
I appreciate your help in eradicating my ignorance!