Running mongodb/atlas local in kubernetes: exit status 1

Hi,

I’m trying to run mongodb/atlas locally in kubernetes but keep getting an error:

[Default Settings]
Deployment Name   local8876
MongoDB Version   7.0
Port              27017

Creating your cluster local8876 [this might take several minutes]
1/3: Starting your local environment...
2/3: Downloading the MongoDB binaries to your local environment...
3/3: Creating your deployment local8876...
Error: exit status 127: : exit status 1

Kubernetes chart:

spec:
  replicas: 1
  selector:
    matchLabels:
      app: mongo
  template:
    metadata:
      labels:
        app: mongo
    spec:
      containers:
        - args:
            - -c
            - atlas deployments setup --type local --bindIpAll --username core --password core --force && tail -f /dev/null
          command:
            - /bin/sh
          image: mongodb/atlas
          name: mongo
          ports:
            - containerPort: 27017
          resources:
            requests:
              cpu: ".5"
              memory: 1Gi

I found the problem, the container needs to be privileged:

    spec:
      containers:
        - args:
            - -c
            - atlas deployments setup --type local --bindIpAll --username core --password core --force && tail -f /dev/null
          command:
            - /bin/sh
          image: mongodb/atlas
          name: mongo
          ports:
            - containerPort: 27017
          resources:
            requests:
              cpu: ".5"
              memory: 1Gi
          securityContext:
            privileged: true