The Nautilus DevOps team want to deploy a WordPress website on Kubernetes cluster. They are going to use Nginx, phpfpm and MySQL for the database. The team had already gathered the requirements and now they want to make this website live. Below you can find more details:
a. Create some secrets for MySQL.
- Create a secret named
mysql-root-pass
wih key/value pairs as below:
name: password
and value: R00t
- Create a secret named
mysql-user-pass
with key/value pairs as below
name: username
, value: kodekloud_tim
and name: password
, value: Rc5C9EyvbU
- Create a secret named
mysql-db-url
with key/value pairs as below:
name: database
and value: kodekloud_db7
- Create a secret named
mysql-host
with key/value pairs as below:
name: host
and value: mysql-service
b. We already have a database dump which is placed under /tmp/db.sql
on jump_host
. Once deployment is done, copy that dump into the MySQL container and import the same in newly created database kodekloud_db7
.
But there is no db.sql database dump on jump_host @ /tmp