Deploying WordPress
The following are the steps to deploy WordPress:
- Run the following command to install WordPress:
kubectl create ns wordpress helm install wp azure/wordpress --namespace wordpress --set replicaCount=1 --set externalDatabase.azure.location=<your Azure region>
- To verify the status of the WordPress Pod, run the following command:
kubectl get pods -n wordpress
This should show the status of a single WordPress Pod as displayed in Figure 8.8. In our previous WordPress examples, we always had two Pods running, but we were able to offload the database functionality to Azure here:
Figure 8.8: Output displaying only one WordPress Pod and no database on our cluster
- While the WordPress Pod is being created, we can check on the status of the database as well. We can use two tools to get this status, either
svcat
orkubectl
:./svcat get instances -n wordpress
This will generate the output shown in Figure 8.9:
Figure 8.9: Output displaying the use of svcat to get...