Clone this repo.
Create password Using
echo -n 'admin' | base64
edit this field password:
Deploy first the secret.yaml
kubectl create -f secret.yaml
check 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.yaml
and then deploy pv-wordpress.yaml
kubectl create -f pv-wordpress.yaml
to check deployment of persistent volume you can check using :
kubectl get pv
For mysql :
kubectl create -f pvc-mysql.yaml
for wordpress :
kubectl create -f pvc-wordpress.yaml
check using kubectl get pvc
kubectl create -f mysql-deployment.yaml
kubectl create -f wordpress-deployment.yaml
kubectl get all -A
kubectl create -f wordpress-service.yaml
Check 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 pods
after thatkubectl describe {name_pods}