removed unused sh

This commit is contained in:
jem 2021-09-21 18:47:07 +02:00
parent b4932f3a85
commit 9dcf65a85b
3 changed files with 0 additions and 51 deletions

View file

@ -1,22 +0,0 @@
#!/bin/bash
kubectl delete --ignore-not-found=true -f cloud-ingress.yml
kubectl delete --ignore-not-found=true -f cloud-pod.yml
kubectl delete --ignore-not-found=true -f cloud-pvc.yml
kubectl delete --ignore-not-found=true -f cloud-service.yml
kubectl delete --ignore-not-found=true -f cloud-secret.yml
kubectl delete --ignore-not-found=true -f cloud-persistent-volume.yml
#Wait for postgres to be running
while [$POSTGRES = ""]
do
POSTGRES=$(kubectl get pods --selector=app=postgresql -o jsonpath='{.items[*].metadata.name}')
done
kubectl wait --for=condition=ready pod/$POSTGRES
kubectl apply -f cloud-persistent-volume.yml
kubectl apply -f cloud-secret.yml
kubectl apply -f cloud-service.yml
kubectl apply -f cloud-pvc.yml
kubectl apply -f cloud-pod.yml
kubectl apply -f cloud-ingress.yml

View file

@ -1,4 +0,0 @@
#!/bin/bash
mkdir -p /var/cloud
install -d -m 0777 -o {{user}} -g {{user}} /var/cloud

View file

@ -1,25 +0,0 @@
#!/bin/bash
SECONDS=0
while true; do
POD_STATUS="$(kubectl get pods --all-namespaces --field-selector=status.phase=Running | grep $1 )";
if [ ! -z "$POD_STATUS" ]
then
# pod = ready is not enough
sleep $4
break
fi
let duration=$SECONDS/60
# pallet needs a regular action, otherwise unwanted timeout after 5 min
echo "Seconds waited: ${SECONDS}"
if [ "$duration" -ge "$2" ]
then
exit 1
fi
sleep $3
done
exit 0