How can I Update Wordpress


how can I update my wordpress below is the result after clicking update.

Downloading update from…

Unpacking the update…

The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.: wp-admin/includes/update-core.php

Installation Failed


You need to build another container image with the new code.

The reason is that, basically, container base image is unchanged even if you do that. So, when the container restarts, it will still use the old WordPress code (because the container image was not changed).

If you create a new image with the new code and all, you can do a regular deploy and it will work fine.

Does it make sense?


ok I understand, images or containers are for files only how about the database? where can I update it? how can I consolidate it on the live site?


Databases and other things that must persist state will use a persistent volume / persistent volume claim.

You might find this example on StatefulSets from the main kubernetes documentation useful:
Example: Deploying WordPress and MySQL with Persistent Volumes

Beyond that, you might want to give the Wordpress Helm Chart a look over. It will give you some good examples of Wordpress in a more production state.


I just get the wordpress kubernetes from Market, and everything installed. After I set it up the wordpress. I want to update the database with my existing database.
My issues are

  • displaying PersistentVolumeClaims and PersistentVolumes
  • displaying a Secret
  • displaying/edit MySQL

Anyway I will check the link you send me. And maybe I get the answer from that link. Thanks.


I tried the example…
it generates a link
and its not working. :frowning:


That is the internal cluster IP. There should be a service of type LoadBalancer called wordpress (can see it at the top of the deploy wordpress example yaml) that will have an external IP.