apiVersion: apps/v1
kind: Deployment
metadata:
  name: moss-dev # TODO: change this deployment name
spec:
  replicas: 1
  selector:
    matchLabels:
      app: moss-dev-deployment-label #TODO: change this label, and make sure it matches the label in ingress.yml
  strategy:
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 1
  minReadySeconds: 60
  template:
    metadata:
      labels:
        app: moss-dev-deployment-label #TODO: change this label
    spec:
      containers:
        - name: moss-dev #TODO: change this container name
          image: moss-dev:latest
          # add your environment variables
          env:
            - name: QDRANT_HOST
              value: "833f0a92-662a-414b-85c0-11cc2bf70416.us-east-1-0.aws.cloud.qdrant.io"
          volumeMounts:
            - name: config-prod
              mountPath: "/apps/config"
              readOnly: true
          ports:
            - containerPort: 8233
          resources:
            requests:
              cpu: 250m
              memory: 512Mi
            limits:
              cpu: 250m
              memory: 512Mi
      volumes:
        - name: config-prod
          secret:
            secretName: moss-dev-secret #TODO: change this secret name, and make sure it matches the secret name in secret.yml