2018-11-19 17:35:08 +01:00

21 lines
326 B
Bash
Executable File

#!/bin/bash
if ! which kubectl > /dev/null; 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