From a2564fe9d74e55e232b785195e60c32dfc541b1e Mon Sep 17 00:00:00 2001 From: Mattia Harlacher <mha146039@stud.gibb.ch> Date: Fri, 28 Mar 2025 13:06:53 +0100 Subject: [PATCH] Update file Tag 9.md --- Tag 9 KW 13/Tag 9.md | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/Tag 9 KW 13/Tag 9.md b/Tag 9 KW 13/Tag 9.md index ce44fee..8ed502d 100644 --- a/Tag 9 KW 13/Tag 9.md +++ b/Tag 9 KW 13/Tag 9.md @@ -106,15 +106,24 @@ kubectl get deployments kubectl get pods ``` -Prüfe den Status des Services: -```bash -kubectl get svc mongo-service -``` - -Das zeigt dir die NodePort-Nummer, über die MongoDB von außerhalb des Clusters erreichbar ist. # MongoDB Compass - Verbindung zu MongoDB herstellen + +## Kompass Download +Den Kompass kann man ganz leicht wie jedes andere Programm Herunterladen. +Die Rescouren bekommt man von der Offiziellen MongoDB seite: +Windows: +https://downloads.mongodb.com/compass/mongodb-compass-1.45.4-win32-x64.exe +Mac: +https://downloads.mongodb.com/compass/mongodb-compass-1.45.4-darwin-arm64.dmg +Linux: +https://downloads.mongodb.com/compass/mongodb-compass_1.45.4_amd64.deb + + +Falls man das selbst anschauen möchte oder andere Systeme hat kann man diese hier holen: +https://www.mongodb.com/try/download/compass + ## MongoDB Verbindung aufbauen Um mit MongoDB Compass eine Verbindung zu deiner MongoDB-Instanz auf Kubernetes herzustellen, benötigst du folgende Informationen: @@ -144,7 +153,8 @@ mongodb://localhost:<NodePort> ## Verbindung in MongoDB Compass herstellen 1. Öffne MongoDB Compass. -2. Gib unter Hostname `localhost` ein. -3. Gib unter Port den NodePort ein (z.B. `30007`). -4. Falls Authentifizierung aktiviert ist, gib Benutzername und Passwort ein. -5. Klicke auf **Connect**, um die Verbindung herzustellen. +2. Erstelle eine neue Verbindung +3. Gib unter Hostname `localhost` ein. +4. Gib unter Port den NodePort ein (z.B. `30007`). +5. Falls Authentifizierung aktiviert ist, gib Benutzername und Passwort ein. +6. Klicke auf **Connect**, um die Verbindung herzustellen. -- GitLab