apiVersion: apps/v1
kind: Deployment
metadata:
  name: chatapp-workers
  namespace: chatapp
spec:
  replicas: 1
  selector:
    matchLabels:
      app: chatapp-workers
  template:
    metadata:
      labels:
        app: chatapp-workers
    spec:
      containers:
      - name: workers
        image: chatapp-workers:latest
        envFrom:
        - configMapRef:
            name: chatapp-config
        - secretRef:
            name: chatapp-secrets
        resources:
          requests:
            memory: "256Mi"
            cpu: "100m"
          limits:
            memory: "512Mi"
            cpu: "250m"