Deploy a WordPress server on a Kubernetes cluster.
- Kubernetes cluster is set up and ready
- Your subdomain points to your Kubernetes cluster
- Kubernetes cluster has a
ClusterIssuer
namedlets-encrypt
set up and ready (may need to be adjusted for your cluster setup)
- Clone this repository and
cd
into it - Configure your subdomain in
ingress.yaml
(lines are marked by TODO) - May adjust
ClusterIssuer
iningress.yaml
- Configure passwords in
env-mysql-secret.yaml
(lines are marked by TODO) - May adjust
PersistentVolumeClaim
indb-persistentvolumeclaim.yaml
andwordpress-persistentvolumeclaim.yaml
. Currently, the default storage class of the cluster is used. - Create Kubernetes namespace and create kubernetes configuration
kubectl create namespace mynamespace
kubectl create -n mynamespace -f ./deploy-kubernetes
- Check if webserver is reachable
In case of webserver is not reachable or errors, check status and logs:
kubectl get all -n mynamespace
kubectl logs -n mynamespace pod/<pod-name>