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

33 lines
462 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
# create the services
for svc in *-svc.yml
do
echo -n "Creating $svc... "
kubectl -f $svc create
done
# create the replication controllers
for rc in *-rc.yml
do
echo -n "Creating $rc... "
kubectl -f $rc create
done
# list pod,rc,svc
echo "Pod:"
kubectl get pod
echo "RC:"
kubectl get rc
echo "Service:"
kubectl get svc