Accessing the WordPress application
The WordPress chart’s release notes provided four commands that you can run to access your WordPress application (you can recall the full release notes using helm get notes wordpress -n chapter3
). Run the four commands that were provided from the notes:
- 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...