Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-12-12 15:08:36 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-12 15:08:36 +0300
commit77ba8f96b5da12090a50c31be7f8503aad21cb33 (patch)
tree6d2502de91f8bf0ba469db44a1fbc4bd847ced2c /scripts/review_apps
parent8973e49a6060d87845807a1ea6760c48f1e476a8 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts/review_apps')
-rwxr-xr-xscripts/review_apps/review-apps.sh17
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
}