mirror of https://github.com/k3s-io/k3s
* updated console output to reflect actual output
* added a tip how to build your own imagepull/6/head
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
|
||||
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.
|
||||
|
@ -142,8 +142,8 @@ The Redis master we created earlier is a single pod (REPLICAS = 1), while the Re
|
|||
```console
|
||||
$ kubectl get rc
|
||||
CONTROLLER CONTAINER(S) IMAGE(S) SELECTOR REPLICAS
|
||||
redis-master redis-master gurpartap/redis app=redis,role=master 1
|
||||
redis-slave redis-slave gurpartap/redis app=redis,role=slave 2
|
||||
redis-master redis-master redis app=redis,role=master 1
|
||||
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
|
||||
```
|
||||
|
||||
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:
|
||||
|
||||
```console
|
||||
$ kubectl get rc
|
||||
CONTROLLER CONTAINER(S) IMAGE(S) SELECTOR REPLICAS
|
||||
guestbook guestbook kubernetes/guestbook:v2 app=guestbook 3
|
||||
redis-master redis-master gurpartap/redis app=redis,role=master 1
|
||||
redis-slave redis-slave gurpartap/redis app=redis,role=slave 2
|
||||
guestbook guestbook gcr.io/google_containers/guestbook:v3 app=guestbook 3
|
||||
redis-master redis-master redis app=redis,role=master 1
|
||||
redis-slave redis-slave kubernetes/redis-slave:v2 app=redis,role=slave 2
|
||||
...
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue