“Kubernetes WordPress Deployment with MySQL Cluster IP and NodePort”

Cluster IP

Node Port

Tier

Backend ---->  clusterip  db to to wordpress

Frontend----> node port or Ingress controller

Cluster IP  -->mysql

Nodeport--> wordpress

So we will be having two deployment one is of mysql, and other is of wordpress. And in wordpress deployment we have to put cluster ip of mysql

So mysql endpoint 10.99.249.125 is this cluster ip for wordpress , so when wordpress team and ask you to provide database ip then we have to provide this cluster ip not pod ip

  1. Now we have to work on wordprress deployment.

Kubectl create –f deploy.yml

Now we have to expose the wordpress by two method either via ingress or expose service via nodeport



Now open worker node public ip on web browser  and node port

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top