Clone this repo.
Create password Using
echo -n 'admin' | base64edit this field password:
Deploy first the secret.yaml
kubectl create -f secret.yamlcheck with kubectl get secret
This script to bind/mount $PATH of you use to datastore on host like /mnt/wordpress and /mnt/mysql
Deploy PV mysql first
kubectl create -f pv-mysql.yamland then deploy pv-wordpress.yaml
kubectl create -f pv-wordpress.yamlto check deployment of persistent volume you can check using :
kubectl get pvFor mysql :
kubectl create -f pvc-mysql.yamlfor wordpress :
kubectl create -f pvc-wordpress.yamlcheck using kubectl get pvc
kubectl create -f mysql-deployment.yamlkubectl create -f wordpress-deployment.yamlkubectl get all -Akubectl create -f wordpress-service.yamlCheck running condition of all using watch kubectl get all -A
to check the error using :
- PV
kubectl describe pv - PVC
kubectl describe pvc - POD
kubectl get podsafter thatkubectl describe {name_pods}