<p>I am trying to deploy a <code>mongo db</code> deployment together with service, as follows:</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: mongo-deployment
  labels:
    app: mongo
spec:
  replicas: 1
  selector:
    matchLabels:
      app: mongo
  template:
    metadata:
      labels:
        app: mongo
    spec:
      containers:
      - name: mongo
        image: mongo:5.0
        ports:
        - containerPort: 27017
        env:
        - name: MONGO_INITDB_ROOT_USERNAME
          valueFrom:
            secretKeyRef: 
              name: mongo-secret
              key: mongo-user
        - name: MONGO_INITDB_ROOT_PASSWORD
          valueFrom:
            secretKeyRef: 
              name: mongo-secret
              key: mongo-password
---
apiVersion: v1
kind: Service
metadata:
  name: mongo-service
spec:
  selector:
    app: mongo
  ports:
    - protocol: TCP
      port: 27017
      targetPort: 27017
</code></pre>
<p>Even though everything seems to be configured right and deployed, it gets to a <code>CrashLoopBackOff</code> state instead of <code>Running</code>, using a <code>kubectl logs &lt;deployment-name&gt;</code> I get the following error:</p>
<pre><code>MongoDB 5.0+ requires a CPU with AVX support, and your current system does not appear to have that!
</code></pre>
<p>Does anybody know what to do?</p>

pedro_bb7
<p>To solve this issue I had to run an older <code>mongo-db</code> docker image version (4.4.6), as follows:</p>
<pre><code>image: mongo:4.4.6
</code></pre>
<p>Reference:</p>
<p><a href="https://github.com/docker-library/mongo/issues/485" rel="noreferrer">Mongo 5.0.0 crashes but 4.4.6 works #485</a></p>
