mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-25 14:08:09 +00:00
21 lines
317 B
Bash
Executable File
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
|