How to pass .sql file in Kubernetes? How to pass .sql file in Kubernetes? kubernetes kubernetes

How to pass .sql file in Kubernetes?


Considering the limit of 1MB for configmaps I would initiate a sidecar that pulls this sql file in an empty dir to the main container for the DB. Naturally the git method is deprecated but this should help:


Use ConfigMap to store the sql file. You should mount the ConfigMap as a volume in the pod.