apiVersion: apps/v1
kind: Deployment
metadata:
  name: container-mom-portal-backend
  namespace: container-mom-system
spec:
  selector:
    matchLabels:
      app: container-mom-portal-backend
  template:
    metadata:
      labels:
        app: container-mom-portal-backend
    spec:
      serviceAccountName: container-mom
      containers:
      - name: portal-backend
        image: ghcr.io/pfeifferj/container-mom-portal-backend:latest
        ports:
        - containerPort: 3001
        envFrom:
        - configMapRef:
            name: portal-backend-config
        - secretRef:
            name: portal-backend-secrets
        resources:
          requests:
            cpu: 200m
            memory: 256Mi
          limits:
            cpu: 500m
            memory: 512Mi 