Skip to content

Commit

Permalink
add startup probe
Browse files Browse the repository at this point in the history
  • Loading branch information
dbadura committed Jan 14, 2025
1 parent 70561a5 commit ee344cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/scripts/deploy_busola.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ kubectl wait --for=jsonpath='{.status.loadBalancer.ingress}' ingress/busola
IP=$(kubectl get ingress busola -ojson | jq .status.loadBalancer.ingress[].ip | tr -d '/"')
echo "IP address: ${IP}"

# check if busola is available with curl
curl --fail "${IP}"

if [[ ! -z "${GITHUB_OUTPUT:-}" ]]; then
echo "IP=${IP}" >> "${GITHUB_OUTPUT}"
echo "IP saved"
Expand Down
4 changes: 4 additions & 0 deletions resources/base/busola/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ spec:
memory: 21Mi
ports:
- containerPort: 3001
startupProbe:
httpGet:
port: 3001
path: /
volumes:
- name: config
configMap:
Expand Down

0 comments on commit ee344cc

Please sign in to comment.