Files
docker-gitlab/kubernetes/teardown.sh
solidnerd 9d5f0dbb0b Fix various shellcheck warnings and errors
Signed-off-by: solidnerd <niclas@mietz.io>
2018-11-24 09:47:58 +01:00

23 lines
355 B
Bash
Executable File

#!/bin/bash
set -e
set -o pipefail
if ! command -v 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