Skip to main content

Posts

Showing posts with the label container

Kubernetes Ingress

Kubernetes Ingress is an API object that provides HTTP and HTTPS routing to services based on rules. It acts as an entry point for external traffic into the cluster, managing external access to services. Ingress allows you to define how external HTTP/S traffic should be processed and routed to different services within the cluster. If you want to start with the beginning then you can click here Key components and concepts of Kubernetes Ingress include: 1. Ingress Resource:    - An Ingress resource is created to define the rules for how external HTTP/S traffic should be handled. 2. Rules:    - Rules define how requests should be routed based on the host and path specified in the incoming request. 3. Backend Services:    - Ingress directs traffic to backend services based on the defined rules. 4. TLS Termination:    - Ingress can handle TLS termination, allowing you to configure HTTPS for your services. 5. Annotations:    - Annotations pr...

How To Get the MongoDB Version from Another Docker Container

To get the MongoDB version from outside of MongoDB in the terminal, you can use the following commands: Linux and macOS: mongo --version Windows: mongod --version These commands will print the version of MongoDB that is installed on your system. For example, if you are running MongoDB version 5.0.13, the command will output the following: MongoDB server version: 5.0.13 If you are running the MongoDB Compass GUI, you can also get the MongoDB version by clicking on the Help menu and selecting About MongoDB Compass . There are a few ways to get the MongoDB version from another container when the MongoDB is running on a separate container and the other container is running a Debian-based image with Python: Use the mongo command. You can use the mongo command to connect to the MongoDB container and get the version. To do this, you will need to know the IP address of the MongoDB container. You can get the IP address of the container using the docker inspect command. docker inspect mon...