Need help to migrate from pm2 to Docker / Kubernetes

Hi everybody !

I’m coming back about the deployment on kubernetes :slight_smile:

I wrote this manifest :

---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: lfg-strapi-landing-page
  labels:
    environment: production
    app: lfg-strapi-landing-page
spec:
  replicas: 1
  selector:
    matchLabels:
      app: lfg-strapi-landing-page
  template:
    metadata:
      labels:
        app: lfg-strapi-landing-page
    spec:
      containers:
      - name: lfg-strapi-landing-page
        image: (my_azure_registry)/lfg-strapi-landing-page:3.0.6
        ports:
        - containerPort: 80
        resources:
          requests:
            cpu: 250m
          limits:
            cpu: 500m
        env:
        - name: DATABASE_CLIENT
          value: "mongo"
        - name: DATABASE_NAME
          value: "strapi-gatsby"
        - name: DATABASE_HOST
          value: "(my_database_host)"
        - name: DATABASE_PORT
          value: "27017"
        - name: DATABASE_USERNAME
          value: "strapi"
        - name: DATABASE_PASSWORD
          value: "(my_database_password)"
        - name: DATABASE_SRV
          value: 'true'
        - name: AUTHENTICATION_DATABASE
          value: "admin"
        - name: DATABASE_SSL
          value: 'true'
---
apiVersion: v1
kind: Service
metadata:
  name: lfg-strapi-landing-page
spec:
  type: LoadBalancer
  ports:
  - port: 80
  selector:
    app: lfg-strapi-landing-page

I’m not confident, but it looks like ok for me.
But, when I deploy it and read the logs, I got :

Loading…Using strapi 3.0.6
No project found at /srv/app. Creating a new strapi project
Creating a new Strapi application at /srv/app.
Creating a project from the database CLI arguments.
Creating files.

  • Installing dependencies:

And after the installation, it is running a new strapi projet, not mine :cry:
It it the same problem than before in local, but I don’t know how to solve it on kubernetes :confused:

Does anybody have an idea ?