Skip to content

Commit ce35bb4

Browse files
committed
Remove trace of "kubectl stop"
Remove doc and use of "kubectl stop" since it's deprecated.
1 parent 88008de commit ce35bb4

14 files changed

Lines changed: 25 additions & 25 deletions

File tree

cluster/libvirt-coreos/user_data_master.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ coreos:
7676
ExecStartPre=/bin/bash -c 'while [[ \"\$(curl -s http://127.0.0.1:8080/healthz)\" != \"ok\" ]]; do sleep 1; done'
7777
ExecStartPre=/bin/sleep 10
7878
ExecStart=/opt/kubernetes/bin/kubectl create -f /opt/kubernetes/addons
79-
ExecStop=/opt/kubernetes/bin/kubectl stop -f /opt/kubernetes/addons
79+
ExecStop=/opt/kubernetes/bin/kubectl delete -f /opt/kubernetes/addons
8080
RemainAfterExit=yes
8181
8282
[Install]

docs/devel/flaky-tests.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ done
8787
grep "Exited ([^0])" output.txt
8888
```
8989

90-
Eventually you will have sufficient runs for your purposes. At that point you can stop and delete the replication controller by running:
90+
Eventually you will have sufficient runs for your purposes. At that point you can delete the replication controller by running:
9191

9292
```sh
93-
kubectl stop replicationcontroller flakecontroller
93+
kubectl delete replicationcontroller flakecontroller
9494
```
9595

9696
If you do a final check for flakes with `docker ps -a`, ignore tasks that exited -1, since that's what happens when you stop the replication controller.

docs/getting-started-guides/coreos/bare_metal_offline.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ List Kubernetes
699699

700700
Kill all pods:
701701

702-
for i in `kubectl get pods | awk '{print $1}'`; do kubectl stop pod $i; done
702+
for i in `kubectl get pods | awk '{print $1}'`; do kubectl delete pod $i; done
703703

704704

705705
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->

docs/getting-started-guides/logging.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ root 479 0.0 0.0 4348 812 ? S 00:05 0:00 sleep 1
123123
root 480 0.0 0.0 15572 2212 ? R 00:05 0:00 ps aux
124124
```
125125

126-
What happens if for any reason the image in this pod is killed off and then restarted by Kubernetes? Will we still see the log lines from the previous invocation of the container followed by the log lines for the started container? Or will we lose the log lines from the original container’s execution and only see the log lines for the new container? Let’s find out. First let’s stop the currently running counter.
126+
What happens if for any reason the image in this pod is killed off and then restarted by Kubernetes? Will we still see the log lines from the previous invocation of the container followed by the log lines for the started container? Or will we lose the log lines from the original container’s execution and only see the log lines for the new container? Let’s find out. First let’s delete the currently running counter.
127127

128128
```console
129-
$ kubectl stop pod counter
129+
$ kubectl delete pod counter
130130
pods/counter
131131
```
132132

docs/user-guide/simple-nginx.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ You can also see the replication controller that was created:
5959
kubectl get rc
6060
```
6161

62-
To stop the two replicated containers, stop the replication controller:
62+
To stop the two replicated containers, delete the replication controller:
6363

6464
```bash
65-
kubectl stop rc my-nginx
65+
kubectl delete rc my-nginx
6666
```
6767

6868
### Exposing your pods to the internet.

examples/guestbook/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,10 +622,10 @@ For Google Compute Engine details about limiting traffic to specific sources, se
622622

623623
### Step Seven: Cleanup
624624

625-
If you are in a live kubernetes cluster, you can just kill the pods by stopping the replication controllers and deleting the services. Using labels to select the resources to stop or delete is an easy way to do this in one command.
625+
If you are in a live kubernetes cluster, you can just kill the pods by deleting the replication controllers and the services. Using labels to select the resources to stop or delete is an easy way to do this in one command.
626626

627627
```console
628-
kubectl stop rc -l "name in (redis-master, redis-slave, frontend)"
628+
kubectl delete rc -l "name in (redis-master, redis-slave, frontend)"
629629
kubectl delete service -l "name in (redis-master, redis-slave, frontend)"
630630
```
631631

examples/phabricator/teardown.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
# limitations under the License.
1616

1717
echo "Deleting Phabricator service" && kubectl delete -f phabricator-service.json
18-
echo "Deleting Phabricator replication controller" && kubectl stop rc phabricator-controller
18+
echo "Deleting Phabricator replication controller" && kubectl delete rc phabricator-controller
1919
echo "Delete firewall rule" && gcloud compute firewall-rules delete -q phabricator-node-80
2020

examples/vitess/etcd-down.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ cells=`echo $CELLS | tr ',' ' '`
2727

2828
# Delete replication controllers
2929
for cell in 'global' $cells; do
30-
echo "Stopping etcd replicationcontroller for $cell cell..."
31-
$KUBECTL stop replicationcontroller etcd-$cell
30+
echo "Deleting etcd replicationcontroller for $cell cell..."
31+
$KUBECTL delete replicationcontroller etcd-$cell
3232

3333
echo "Deleting etcd service for $cell cell..."
3434
$KUBECTL delete service etcd-$cell

examples/vitess/guestbook-down.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ set -e
2121
script_root=`dirname "${BASH_SOURCE}"`
2222
source $script_root/env.sh
2323

24-
echo "Stopping guestbook replicationcontroller..."
25-
$KUBECTL stop replicationcontroller guestbook
24+
echo "Deleting guestbook replicationcontroller..."
25+
$KUBECTL delete replicationcontroller guestbook
2626

2727
echo "Deleting guestbook service..."
2828
$KUBECTL delete service guestbook

examples/vitess/vtctld-down.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ set -e
2121
script_root=`dirname "${BASH_SOURCE}"`
2222
source $script_root/env.sh
2323

24-
echo "Stopping vtctld replicationcontroller..."
25-
$KUBECTL stop replicationcontroller vtctld
24+
echo "Deleting vtctld replicationcontroller..."
25+
$KUBECTL delete replicationcontroller vtctld
2626

2727
echo "Deleting vtctld service..."
2828
$KUBECTL delete service vtctld

0 commit comments

Comments
 (0)