fix: add sleep before wait to ensure pod exists
This commit is contained in:
parent
546681e5a8
commit
ae810fcd69
@ -61,6 +61,7 @@ kcreatesec gitea-admin \
|
||||
--from-literal=password="$GITEA_PASSWORD"
|
||||
|
||||
kubectl run --image "$IMAGEAPP" secrets sleep 60 & &> /dev/null
|
||||
sleep 5
|
||||
kubectl wait --timeout=5m --for=condition=ready pod secrets
|
||||
kcreatesec gitea \
|
||||
--from-literal=secret_key="$(kgseckey gitea secret_key || kubectl exec secrets -- gitea generate secret SECRET_KEY)" \
|
||||
|
Loading…
Reference in New Issue
Block a user