Wordpress GUI on Kubernetes

8/31/2015

I have brought up mysql and wordpress containers on my master-minion single node of the kubernetes cluster (I have created this setup inside my openstack cloud). But when I try to access it on my web, it gives me a "page not found" error.

While listing the endpoints of ther services running, I can use the docker ip to access wordpress through the elinks command.

$ kubectl get endpoints
NAME         ENDPOINTS
kubernetes   20.20.0.124:6443
mysql        172.17.0.2:3306
wpfrontend   172.17.0.3:80

$ elinks 172.17.0.3:80

How do I access through my web GUI?

-- adyanthaya17
docker
kubernetes

2 Answers

9/24/2015

Here is a soup-to-nuts Wordpress example with backing persistent storage: https://github.com/openshift/origin/tree/master/examples/wordpress.

You'll want to use Cinder volumes, though. Here is the github pull that adds Cinder support to the Wordpress example: https://github.com/openshift/origin/pull/4403

The example is in OpenShift, but OpenShift is based on Kube (Red Hat is a major contributor to Kube). The example works exactly the same, you'll just substitute the OpenShift client (oc) with the Kube client (kubectl).

Like Abhishek mentioned, you need a Service. The example above contains services that front MySQL and Wordpress.

-- Mark Turansky
Source: StackOverflow

9/2/2015

Please check out the following documentation: http://kubernetes.io/v1.0/docs/user-guide/services.html#external-services

You need to set up a load balancer to expose your Kubernetes service externally.

-- Abhishek Shah
Source: StackOverflow