<p>I want to migrate an existing website hosted on wordpress to kubernetes using GKE or even gce but i do not know where to start. I haven't written any code yet. I tried to find solutions online but I didn't find anything on migrating a website HOSTED on wordpress to kubernetes.</p>

<ol>
<li>How can i fetch the database</li>
<li>What should the dockerfile look like</li>
<li>How many yaml files should be included</li>
<li>How many pods do i create</li>
</ol>

marwa karaki
<p>You can create and run with on one pod also but it's depends on your wensite traffic.</p>

<p>You can start with the two pod initially one for Mysql and another for wordpress application it self.</p>

<p>You can create two yaml for the same and one docker and apply it to kubernetes cluster.</p>

<p>Follow this simple guide and start your wordpress on kubernetes : </p>

<blockquote>
  <p><a href="https://kubernetes.io/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume/" rel="nofollow noreferrer">https://kubernetes.io/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume/</a></p>
</blockquote>
