diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-12 12:08:36 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-12 12:08:36 +0000 |
commit | 77ba8f96b5da12090a50c31be7f8503aad21cb33 (patch) | |
tree | 6d2502de91f8bf0ba469db44a1fbc4bd847ced2c /scripts/review_apps | |
parent | 8973e49a6060d87845807a1ea6760c48f1e476a8 (diff) | |
download | gitlab-ce-77ba8f96b5da12090a50c31be7f8503aad21cb33.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts/review_apps')
-rwxr-xr-x | scripts/review_apps/review-apps.sh | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/scripts/review_apps/review-apps.sh b/scripts/review_apps/review-apps.sh index a108fb8df69..fea77876b66 100755 --- a/scripts/review_apps/review-apps.sh +++ b/scripts/review_apps/review-apps.sh @@ -372,15 +372,24 @@ function verify_deploy() { function display_deployment_debug() { local namespace="${CI_ENVIRONMENT_SLUG}" + # Install dig to inspect DNS entries + apt update && apt install dnsutils + + echoinfo "[debugging data] Check review-app webservice DNS entry:" + dig +short $(echo "${CI_ENVIRONMENT_URL}" | sed 's~http[s]*://~~g') + + echoinfo "[debugging data] Check external IP for nginx-ingress-controller service (should be THE SAME AS the DNS entry IP above):" + kubectl -n "${namespace}" get svc "${namespace}-nginx-ingress-controller" -o jsonpath='{.status.loadBalancer.ingress[].ip}' + echoinfo "[debugging data] k8s resources:" - kubectl get pods --namespace "${namespace}" + kubectl -n "${namespace}" get pods echoinfo "[debugging data] PostgreSQL logs:" - kubectl logs -l app=postgresql --all-containers --namespace "${namespace}" + kubectl -n "${namespace}" logs -l app=postgresql --all-containers echoinfo "[debugging data] DB migrations logs:" - kubectl logs -l app=migrations --all-containers --namespace "${namespace}" + kubectl -n "${namespace}" logs -l app=migrations --all-containers echoinfo "[debugging data] Webservice logs:" - kubectl logs -l app=webservice -c webservice --namespace "${namespace}" + kubectl -n "${namespace}" logs -l app=webservice -c webservice } |