Pyae Phyoe Shein
Pyae Phyoe Shein

Reputation: 13827

How could I move existing wordpress to kubernetes?

I'm about to move my existing wordpress website to kubernetes. I've created helm chart with everything such as pvc, configmap, ingress, deployment and so on. But main problem is how could I move existing wordpress content folder to PVC? I mean, could I move wordpress content folder from my laptop to PVC?

Upvotes: 1

Views: 856

Answers (1)

Felipe
Felipe

Reputation: 7563

I would approach this problem first by creating a docker image of your wordpress website. This tutorial might help https://buddy.works/guides/wordpress-docker-kubernetes-part-1 .

Then I can push this new image to docker hub. And then I would not need PVC but a Deployment kubernets object that instantiate this image.

After you have a PVC in your k8s you can use a mountPath in pod, as it is shown here https://kubernetes.io/docs/tasks/configure-pod-container/configure-volume-storage/ .

Upvotes: 4

Related Questions