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]