I use configMap
to feed the init.sql
script to initialise my Mysql container in the Kubernetes pod. While that works for most cases I am struggling to convert a larger init.sql
file which is 12.2 MB.
I use the following in deployment.yaml
to mount the configMap.
volumeMounts:
- name: init-volume
mountPath: /docker-entrypoint-initdb.d
volumes:
- name: init-volume
configMap:
defaultMode: 420
name: init-volume
The command I use to create the configMap
kubectl create configMap init-volume --from-file=init.sql
I get the error
Error from server (RequestEntityTooLarge): Request entity too large: limit is 3145728
How can I increase this limit/or any other alternate to initialise my database?