Accessing the WordPress application
The WordPress chart's release notes provide four commands that you can run to access your WordPress application. Run the four commands listed here:
- For macOS or Linux, run the following:
$ export NODE_PORT=$(kubectl get --namespace chapter3 -o jsonpath="{.spec.ports[0].nodePort}" services wordpress) $ export NODE_IP=$(kubectl get nodes --namespace chapter3 -o jsonpath="{.items[0].status.addresses[0].address}") $ echo "WordPress URL: http://$NODE_IP:$NODE_PORT/" $ echo "WordPress Admin URL: http://$NODE_IP:$NODE_PORT/admin"
- For Windows PowerShell, run the following:
> $NODE_PORT = kubectl get --namespace chapter3 -o jsonpath="{.spec.ports[0].nodePort}" services wordpress | Out-String > $NODE_IP = kubectl get nodes --namespace chapter3 -o jsonpath="{.items[0].status.addresses[0].address}" | Out-String > echo "WordPress URL: http://$NODE_IP:$NODE_PORT/" >...