Remove trace of "kubectl stop"
Remove doc and use of "kubectl stop" since it's deprecated.
This commit is contained in:
parent
1c79db1e81
commit
ebe5bd5270
|
|
@ -622,10 +622,10 @@ For Google Compute Engine details about limiting traffic to specific sources, se
|
||||||
|
|
||||||
### Step Seven: Cleanup
|
### Step Seven: Cleanup
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
```console
|
```console
|
||||||
kubectl stop rc -l "name in (redis-master, redis-slave, frontend)"
|
kubectl delete rc -l "name in (redis-master, redis-slave, frontend)"
|
||||||
kubectl delete service -l "name in (redis-master, redis-slave, frontend)"
|
kubectl delete service -l "name in (redis-master, redis-slave, frontend)"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,6 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
echo "Deleting Phabricator service" && kubectl delete -f phabricator-service.json
|
echo "Deleting Phabricator service" && kubectl delete -f phabricator-service.json
|
||||||
echo "Deleting Phabricator replication controller" && kubectl stop rc phabricator-controller
|
echo "Deleting Phabricator replication controller" && kubectl delete rc phabricator-controller
|
||||||
echo "Delete firewall rule" && gcloud compute firewall-rules delete -q phabricator-node-80
|
echo "Delete firewall rule" && gcloud compute firewall-rules delete -q phabricator-node-80
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,8 +27,8 @@ cells=`echo $CELLS | tr ',' ' '`
|
||||||
|
|
||||||
# Delete replication controllers
|
# Delete replication controllers
|
||||||
for cell in 'global' $cells; do
|
for cell in 'global' $cells; do
|
||||||
echo "Stopping etcd replicationcontroller for $cell cell..."
|
echo "Deleting etcd replicationcontroller for $cell cell..."
|
||||||
$KUBECTL stop replicationcontroller etcd-$cell
|
$KUBECTL delete replicationcontroller etcd-$cell
|
||||||
|
|
||||||
echo "Deleting etcd service for $cell cell..."
|
echo "Deleting etcd service for $cell cell..."
|
||||||
$KUBECTL delete service etcd-$cell
|
$KUBECTL delete service etcd-$cell
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,8 @@ set -e
|
||||||
script_root=`dirname "${BASH_SOURCE}"`
|
script_root=`dirname "${BASH_SOURCE}"`
|
||||||
source $script_root/env.sh
|
source $script_root/env.sh
|
||||||
|
|
||||||
echo "Stopping guestbook replicationcontroller..."
|
echo "Deleting guestbook replicationcontroller..."
|
||||||
$KUBECTL stop replicationcontroller guestbook
|
$KUBECTL delete replicationcontroller guestbook
|
||||||
|
|
||||||
echo "Deleting guestbook service..."
|
echo "Deleting guestbook service..."
|
||||||
$KUBECTL delete service guestbook
|
$KUBECTL delete service guestbook
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,8 @@ set -e
|
||||||
script_root=`dirname "${BASH_SOURCE}"`
|
script_root=`dirname "${BASH_SOURCE}"`
|
||||||
source $script_root/env.sh
|
source $script_root/env.sh
|
||||||
|
|
||||||
echo "Stopping vtctld replicationcontroller..."
|
echo "Deleting vtctld replicationcontroller..."
|
||||||
$KUBECTL stop replicationcontroller vtctld
|
$KUBECTL delete replicationcontroller vtctld
|
||||||
|
|
||||||
echo "Deleting vtctld service..."
|
echo "Deleting vtctld service..."
|
||||||
$KUBECTL delete service vtctld
|
$KUBECTL delete service vtctld
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,8 @@ set -e
|
||||||
script_root=`dirname "${BASH_SOURCE}"`
|
script_root=`dirname "${BASH_SOURCE}"`
|
||||||
source $script_root/env.sh
|
source $script_root/env.sh
|
||||||
|
|
||||||
echo "Stopping vtgate replicationcontroller..."
|
echo "Deleting vtgate replicationcontroller..."
|
||||||
$KUBECTL stop replicationcontroller vtgate
|
$KUBECTL delete replicationcontroller vtgate
|
||||||
|
|
||||||
echo "Deleting vtgate service..."
|
echo "Deleting vtgate service..."
|
||||||
$KUBECTL delete service vtgate
|
$KUBECTL delete service vtgate
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue