Score:0

'vm.max_map_count is too low' in kubernetes mongodb client

cn flag

This is how I'm running a mongodb client in my kubernetes cluster:

kind: Pod
apiVersion: v1
metadata:
  name: mongodb-client
  namespace: backup
spec:
  containers:
    - name: mongodb-client
      image: mongo:6.0.6
      command: ["tail", "-f", "/dev/null"]
      imagePullPolicy: IfNotPresent

Then I'm trying to log into the db:

mongosh --host "mongodb-0.mongodb-headless.databases.svc.cluster.local:27017,mongodb-1.mongodb-headless.databases.svc.cluster.local:27017,mongodb-2.mongodb-headless.databases.svc.cluster.local:27017" --authenticationDatabase admin -u user

I do get the output:

Connecting to:          mongodb://<credentials>@mongodb-0.mongodb-headless.databases.svc.cluster.local:27017,mongodb-1.mongodb-headless.databases.svc.cluster.local:27017,mongodb-2.mongodb-headless.databases.svc.cluster.local:27017/?authSource=admin&appName=mongosh+1.10.0
Using MongoDB:          6.0.6
Using Mongosh:          1.10.0

For mongosh info see: https://docs.mongodb.com/mongodb-shell/


To help improve our products, anonymous usage data is collected and sent to MongoDB periodically (https://www.mongodb.com/legal/privacy-policy).
You can opt-out by running the disableTelemetry() command.

------
  The server generated these startup warnings when booting
  2023-07-11T08:35:10.635+00:00: vm.max_map_count is too low
------

Why do I get vm.max_map_count is too low and where do I have to configure the value?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.