21 lines
317 B
Bash
Executable File

#!/bin/bash
if ! which -s kubectl; then
echo "kubectl command not installed"
exit 1
fi
# delete the services
for svc in *-svc.yml
do
echo -n "Deleting $svc... "
kubectl -f $svc delete
done
# delete the replication controllers
for rc in *-rc.yml
do
echo -n "Deleting $rc... "
kubectl -f $rc delete
done