I used microk8s "low-ops, minimal production” kubernetes distribution for this project
Steps to deploy the services:
-
First create the services from the manifests by running
microk8s kubectl apply -f .
-
Check if the resources are running by running
microk8s kubectl get all
-
Access wordpress installation exposed by nodeport 80 using the cluster IP from wp service
-
If you are running on any cloud based k8s service, Make sure the loadbalancer is created and accessible by exposing it to public.
-
If you want to change the secrets, replace the encoded value with your password. Cmd to encode is
echo -n 'string' | base64
and to decodeecho -n 'bXktc3RyaW5n' | base64 --decode
Steps:
chmod +x deploy.sh
- run
./deploy.sh