mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-09 13:12:20 +00:00
Remove kubecfg from all getting started docs.
This commit is contained in:
@@ -178,10 +178,9 @@ NAME IMAGE(S SELECTOR REPLICAS
|
||||
```
|
||||
|
||||
Start a container running nginx with a replication controller and three replicas
|
||||
(note that this step uses the `kubecfg.sh` command instead of `kubectl.sh`):
|
||||
|
||||
```
|
||||
$ cluster/kubecfg.sh -p 8080:80 run dockerfile/nginx 3 myNginx
|
||||
$ cluster/kubectl.sh run-container my-nginx --image=dockerfile/nginx --replicas=3 --port=80
|
||||
```
|
||||
|
||||
When listing the pods, you will see that three containers have been started and are in Waiting state:
|
||||
@@ -231,7 +230,7 @@ NAME LABELS SELECTOR IP PORT
|
||||
|
||||
$ cluster/kubectl.sh get replicationControllers
|
||||
NAME IMAGE(S SELECTOR REPLICAS
|
||||
myNginx dockerfile/nginx name=myNginx 3
|
||||
myNginx dockerfile/nginx name=my-nginx 3
|
||||
```
|
||||
|
||||
We did not start any services, hence there are none listed. But we see three replicas displayed properly.
|
||||
@@ -239,7 +238,7 @@ Check the [guestbook](../../examples/guestbook/README.md) application to learn h
|
||||
You can already play with resizing the replicas with:
|
||||
|
||||
```
|
||||
$ cluster/kubecfg.sh resize myNginx 2
|
||||
$ cluster/kubectl.sh resize rc my-nginx --replicas=2
|
||||
$ cluster/kubectl.sh get pods
|
||||
NAME IMAGE(S) HOST LABELS STATUS
|
||||
7813c8bd-3ffe-11e4-9036-0800279696e1 dockerfile/nginx 10.245.2.2/10.245.2.2 name=myNginx Running
|
||||
|
Reference in New Issue
Block a user