Skip to content

Commit

Permalink
fix(k8s): update cronjobs check
Browse files Browse the repository at this point in the history
  • Loading branch information
duddu committed Jun 16, 2023
1 parent 041bbc5 commit 9bba758
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/home-server-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ apply_k8s_resources () {
sleep 5
kubectl wait --for=condition=Available --timeout=300s deployments --all &&
kubectl wait --for=condition=ContainersReady --field-selector=spec.restartPolicy=Always --timeout=180s pods &&
kubectl wait --for=condition=PodScheduled --field-selector=spec.restartPolicy=OnFailure --timeout=180s pods ||
(kubectl get deployments ; kubectl describe pods ; exit 1)
kubectl get -f .home-server/config/k8s/cronjobs ||
(kubectl describe pods ; kubectl describe cronjobs.batch ; exit 1)
echo "🚀 Pods ready"
}

Expand Down

0 comments on commit 9bba758

Please sign in to comment.