struggling with deployment strategy with wordpress on kubernetes

[ad_1]

I am trying to persist and follow a gitops way of doing wordpress on kubernetes (is that at all possible?).

I have a cluseer with wordpress running, the volume is persisted by a nfs server pod. But lets say I make a change to the repo that backs the contents of the wp files. What would be a good approach to update the wordpress pod with the latest commit?

do i have some script that git pulls based on an commit event to the repo?
do i have a script and deletes everything in the root path and clones the latest commit?

or completely different approach i haven’t though of yet?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer