This guide covers creating K8s volumes and configuring a WP instance with a MySQL database in a most simple way — a perfect introduction to for newbies. Kubernetes It is a direct followup to the articles on and of projects, allowing you to introduce the power of Docker to your dev setup. Now it’s time to unleash it on a cluster of Google-powered nodes. dockerizing automating the delivery WordPress Configure a PersistentVolume in the K8s cluter Since we only have one node in the cluster we’ll use a volume. This type of volume mounts the path from the node's filesystem into K8s. hostPath Create volumes.yml apiVersion: v1kind: PersistentVolumemetadata: name: local-pv-1 labels: type: localspec: capacity: storage: 10Gi accessModes: - ReadWriteOnce hostPath: path: /k8/volume/pv-1---apiVersion: v1kind: PersistentVolumemetadata: name: local-pv-2 labels: type: localspec: capacity: storage: 10Gi accessModes: - ReadWriteOnce hostPath: path: /k8/volume/pv-2 This config will create two R/W 10GB volumes in the node paths: /k8/volume/pv-1/k8/volume/pv-2 Create your K8s volumes To create the volumes, run kubectl apply -f volumes.yml You can run the command below to check if eveything’s correct: kubectl get pvNAME CAPACITY ACCESSMODES RECLAIMPOLICY STATUS CLAIM STORAGECLASS REASON AGElocal-pv-1 10Gi RWO Retain Available 13slocal-pv-2 10Gi RWO Retain Available 13s Like what your read? Check out the full guide here! Other posts: 1. How to Dockerize WordPress sites 2. How to automate WordPress delivery with Docker and Buddy