Skip to content

Commit

Permalink
miniziti configurable timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
qrkourier committed Sep 11, 2023
1 parent 20c0f33 commit 3309dc5
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions docusaurus/docs/learn/quickstarts/network/miniziti.bash
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ main(){
# local defaults that are inherited or may error
DETECTED_OS="$(detectOs)"
: "${DEBUG_MINIKUBE_TUNNEL:=0}" # set env = 1 to trigger the minikube tunnel probe
: "${MINIZITI_TIMEOUT_SECS:=240}"


while (( $# )); do
Expand Down Expand Up @@ -554,13 +555,13 @@ main(){
kubectl_wrapper wait jobs "ingress-nginx-admission-patch" \
--namespace ingress-nginx \
--for condition=complete \
--timeout 120s >&3
--timeout "${MINIZITI_TIMEOUT_SECS}s" >&3

kubectl_wrapper wait pods \
--namespace ingress-nginx \
--for condition=ready \
--selector app.kubernetes.io/component=controller \
--timeout 120s >&3
--timeout "${MINIZITI_TIMEOUT_SECS}s" >&3

logDebug "applying Custom Resource Definitions: Certificate, Issuer, and Bundle"
kubectl_wrapper apply \
Expand Down Expand Up @@ -618,7 +619,7 @@ main(){
kubectl_wrapper wait deployments "$DEPLOYMENT" \
--namespace "${ZITI_NAMESPACE}" \
--for condition=Available=True \
--timeout 240s >&3
--timeout "${MINIZITI_TIMEOUT_SECS}s" >&3
done

#
Expand Down Expand Up @@ -711,7 +712,8 @@ main(){
logDebug "waiting for cluster dns to be ready"
kubectl_wrapper wait deployments "coredns" \
--namespace kube-system \
--for condition=Available=True >&3
--for condition=Available=True \
--timeout "${MINIZITI_TIMEOUT_SECS}s" >&3
}

# perform a DNS query in a pod so we know ingress-dns is working inside the cluster
Expand Down Expand Up @@ -769,7 +771,8 @@ main(){
logInfo "waiting for ziti-router to be ready"
kubectl_wrapper wait deployments "ziti-router" \
--namespace "${ZITI_NAMESPACE}" \
--for condition=Available=True >&3
--for condition=Available=True \
--timeout "${MINIZITI_TIMEOUT_SECS}s" >&3

logDebug "probing miniziti-router for online status"
if ziti_wrapper edge list edge-routers "name=\"$ROUTER_NAME\"" \
Expand Down Expand Up @@ -809,7 +812,7 @@ main(){
kubectl_wrapper wait deployments "ziti-console" \
--namespace "${ZITI_NAMESPACE}" \
--for condition=Available=True \
--timeout 240s >&3
--timeout "${MINIZITI_TIMEOUT_SECS}s" >&3

logDebug "setting default namespace to '${ZITI_NAMESPACE}' in kubeconfig context '${MINIKUBE_PROFILE}'"
kubectl_wrapper config set-context "${MINIKUBE_PROFILE}" \
Expand Down

0 comments on commit 3309dc5

Please sign in to comment.