Configuring Persistent Storage in Kubernetes for a Stateful Application
Abhinav Paul
Infra Dev Specialist | Devops | Cloud | AWS | Terraform | Shell Scripting | Gitlab CI CD | Python | Linux | Ansible
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.
Step2: Created a Persistent Volume Claim.
Step3: Created a Service on Type NodePort
Step4: Creating a POD using image mysql:5.7 and using Deployment Service.
Step5: Created a Persistent Volume Claim for MYSQL POD.
Step6: Created a Service of Type ClusterIP none
Step7: Here we are using Kustomization to define the sequence and all define the secrets which will be used in the YAML files.
Step8: Once all 3 files are created then execute the below command.
FInal Step to Test the URL https://PublicIP:31130 and our WordPress Website is deployed.