mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2025-07-29 11:44:29 +00:00
23 lines
355 B
Bash
Executable File
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
|