mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-17 15:50:10 +00:00
* updated console output to reflect actual output
* added a tip how to build your own image
This commit is contained in:
parent
cc91f129a0
commit
95cee0db17
@ -96,7 +96,7 @@ Use the `examples/guestbook-go/redis-master-controller.json` file to create a [r
|
|||||||
|
|
||||||
me@kubernetes-minion-3:~$ sudo docker ps
|
me@kubernetes-minion-3:~$ sudo docker ps
|
||||||
CONTAINER ID IMAGE COMMAND CREATED STATUS
|
CONTAINER ID IMAGE COMMAND CREATED STATUS
|
||||||
d5c458dabe50 gurpartap/redis:latest "/usr/local/bin/redi 5 minutes ago Up 5 minutes
|
d5c458dabe50 redis "/entrypoint.sh redis" 5 minutes ago Up 5 minutes
|
||||||
```
|
```
|
||||||
|
|
||||||
Note: The initial `docker pull` can take a few minutes, depending on network conditions.
|
Note: The initial `docker pull` can take a few minutes, depending on network conditions.
|
||||||
@ -142,8 +142,8 @@ The Redis master we created earlier is a single pod (REPLICAS = 1), while the Re
|
|||||||
```console
|
```console
|
||||||
$ kubectl get rc
|
$ kubectl get rc
|
||||||
CONTROLLER CONTAINER(S) IMAGE(S) SELECTOR REPLICAS
|
CONTROLLER CONTAINER(S) IMAGE(S) SELECTOR REPLICAS
|
||||||
redis-master redis-master gurpartap/redis app=redis,role=master 1
|
redis-master redis-master redis app=redis,role=master 1
|
||||||
redis-slave redis-slave gurpartap/redis app=redis,role=slave 2
|
redis-slave redis-slave kubernetes/redis-slave:v2 app=redis,role=slave 2
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -205,14 +205,16 @@ This is a simple Go `net/http` ([negroni](https://github.com/codegangsta/negroni
|
|||||||
replicationcontrollers/guestbook
|
replicationcontrollers/guestbook
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Tip: If you want to modify the guestbook code open the `_src` of this example and read the README.md and the Makefile. If you have pushed your custom image be sure to update the `image` accordingly in the guestbook-controller.json.
|
||||||
|
|
||||||
2. To verify that the guestbook replication controller is running, run the `kubectl get rc` command:
|
2. To verify that the guestbook replication controller is running, run the `kubectl get rc` command:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ kubectl get rc
|
$ kubectl get rc
|
||||||
CONTROLLER CONTAINER(S) IMAGE(S) SELECTOR REPLICAS
|
CONTROLLER CONTAINER(S) IMAGE(S) SELECTOR REPLICAS
|
||||||
guestbook guestbook kubernetes/guestbook:v2 app=guestbook 3
|
guestbook guestbook gcr.io/google_containers/guestbook:v3 app=guestbook 3
|
||||||
redis-master redis-master gurpartap/redis app=redis,role=master 1
|
redis-master redis-master redis app=redis,role=master 1
|
||||||
redis-slave redis-slave gurpartap/redis app=redis,role=slave 2
|
redis-slave redis-slave kubernetes/redis-slave:v2 app=redis,role=slave 2
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user