Skip to content

nramnad/wordpress-mysql-k8s

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wordpress-mysql-k8s

This repo deals with deploying wordpress and mysql on k8s

Steps to deploy the services:

  1. First create secrets by running kubectl apply -f secret.yml.
  2. Create mysql service,pvc and delployment by running kubectl apply -f mysql.yml.
  3. Create wordpress service,pvc and deployment by running kubectl apply -f wordpress.mysql.
  4. Now run the commands to check the resources: kubectl get pvc && kubectl get pods && kubectl get svc.
  5. If you are running the above resources in minikube, then run minikube service wordpressServiceName to access the portal/frontend.
  6. If you are running on any cloud based k8s service, Make sure the loadbalancer is created and accessible by exposing it to public.
  7. If you want to change the secrets, replace the encoded value with your password. Cmd to encode is echo -n 'my-string' | base64 and to decode echo -n 'bXktc3RyaW5n' | base64 --decode

About

This repo deals with deploying wordpress and mysql on k8s

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors