Configuring Persistent Storage in
Kubernetes for a Stateful Application

Configuring Persistent Storage in Kubernetes for a Stateful Application

Source Code : https://github.com/sunny92-bit/abhinav92_devops24/tree/de09ec0d26cda4410f8bc03bba2291c48b0c4122/WORDPRESS_DEPLOYMENT


Here we are going to Deploy a 2 tier Application Using Apache and MYSQL.


Step1: Here we are creating a Container using the image wordpress:4.8-apache via Deployment Service.

Article content

Step2: Created a Persistent Volume Claim.


Article content


Step3: Created a Service on Type NodePort


Article content


Step4: Creating a POD using image mysql:5.7 and using Deployment Service.


Article content


Step5: Created a Persistent Volume Claim for MYSQL POD.




Article content


Step6: Created a Service of Type ClusterIP none


Article content


Step7: Here we are using Kustomization to define the sequence and all define the secrets which will be used in the YAML files.


Article content

Step8: Once all 3 files are created then execute the below command.


Article content


Article content



Article content


FInal Step to Test the URL http://PublicIP:31130 and our WordPress Website is deployed.


Article content


To view or add a comment, sign in

More articles by Abhinav Paul

Explore content categories