From 37ebd9b2c8b44f76d986450fa0a4446259320c44 Mon Sep 17 00:00:00 2001 From: Elif Munn Date: Wed, 9 Nov 2022 15:15:35 -0800 Subject: [PATCH 1/2] Added how to check basic network connectivity and how to check database connectivity --- doc/troubleshooting/kubernetes_cheat_sheet.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/doc/troubleshooting/kubernetes_cheat_sheet.md b/doc/troubleshooting/kubernetes_cheat_sheet.md index 635fbe0f0e..2c9c11780e 100644 --- a/doc/troubleshooting/kubernetes_cheat_sheet.md +++ b/doc/troubleshooting/kubernetes_cheat_sheet.md @@ -84,6 +84,17 @@ and they will assist you with any issues you are having. you will be able to see the new schedule here. Some details about the schedules can be found in [Running Automated Tasks with a CronJob](https://kubernetes.io/docs/tasks/job/automated-tasks-with-cron-jobs/#creating-a-cron-job) +- How to check connectivity in a cluster + + You can run a container of your choice and install the tools needed to check network connectivity. + + Example: Run alpine container and install busybox-extras package. You can then use commands like `telnet` and `nslookup`. + + ```shell + kubectl run -n -it --tty --rm debug --image=alpine --restart=Never -- sh + apk update && apk add busybox-extras + ``` + ## GitLab-specific Kubernetes information - Minimal configuration that can be used to [test a Kubernetes Helm chart](https://gitlab.com/gitlab-org/charts/gitlab/-/issues/620). @@ -219,6 +230,12 @@ all Kubernetes resources and dependent charts: helm get manifest ``` +- How to check connectivity to GitLab PostgreSQL database: + + ```shell + kubectl run pgsql-client --rm --tty -i --restart='Never' --namespace --image docker.io/bitnami/postgresql --env="PGPASSWORD=" --command -- psql --host -U gitlab -d gitlabhq_production -p 5432 + ``` + ## Installation of minimal GitLab configuration via minikube on macOS This section is based on [Developing for Kubernetes with minikube](../development/minikube/index.md) -- GitLab From 09723c83373adaf4fc6efcb5d25d7dc891bf9ac4 Mon Sep 17 00:00:00 2001 From: Elif Munn Date: Thu, 10 Nov 2022 13:43:48 -0800 Subject: [PATCH 2/2] Removed how to check connectivity to GitLab database --- doc/troubleshooting/kubernetes_cheat_sheet.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/doc/troubleshooting/kubernetes_cheat_sheet.md b/doc/troubleshooting/kubernetes_cheat_sheet.md index 2c9c11780e..e936cd797b 100644 --- a/doc/troubleshooting/kubernetes_cheat_sheet.md +++ b/doc/troubleshooting/kubernetes_cheat_sheet.md @@ -230,12 +230,6 @@ all Kubernetes resources and dependent charts: helm get manifest ``` -- How to check connectivity to GitLab PostgreSQL database: - - ```shell - kubectl run pgsql-client --rm --tty -i --restart='Never' --namespace --image docker.io/bitnami/postgresql --env="PGPASSWORD=" --command -- psql --host -U gitlab -d gitlabhq_production -p 5432 - ``` - ## Installation of minimal GitLab configuration via minikube on macOS This section is based on [Developing for Kubernetes with minikube](../development/minikube/index.md) -- GitLab