This will cause all pods to see the redis master apparently running on localhost:10000.
This will cause all pods to see the redis master apparently running on <ip>:6379.
Once created, the service proxy on each minion is configured to set up a proxy on the specified port (in this case port 10000).
Once created, the service proxy on each minion is configured to set up a proxy on the specified port (in this case port 6379).
### Step Three: Turn up the replicated slave pods.
Although the redis master is a single pod, the redis read slaves are a 'replicated' pod. In Kubernetes, a replication controller is responsible for managing multiple instances of a replicated pod.
...
...
@@ -127,7 +126,7 @@ Use the file `examples/guestbook/redis-slave-controller.json`
"containers":[{
"name":"slave",
"image":"brendanburns/redis-slave",
"ports":[{"containerPort":6379,"hostPort":6380}]
"ports":[{"containerPort":6379}]
}]
}
},
...
...
@@ -174,7 +173,7 @@ Just like the master, we want to have a service to proxy connections to the read
"id":"redisslave",
"kind":"Service",
"apiVersion":"v1beta1",
"port":10001,
"port":6379,
"containerPort":6379,
"labels":{
"name":"redisslave"
...
...
@@ -193,7 +192,7 @@ Now that you have created the service specification, create it in your cluster w