Lamp stack on kubernetes

Hi I completed the deployment of two containers but I am unable to transfer the dump which is located in the /tmp folder. A file name db.sql should be transferred to the mysqlcontainer within the lamp stack pod. I am unable to do this. Please guide me to achieve this task.

The following command is what I did:
kubectl exec -it lamp-wp-8567f48dc8-jjjl7 -c mysql-container – mysql -u root -pR00t kodekloud_db2 < /tmp/db.sql

Please look at my attachment for the result of the above command.


Hello, @faisalbasha1982
You have to first copy mysql dump into the Pod then you can perform these kind of steps. For hint, you can use kubectl cp command.

Thanks I have successfully completed the task.