apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: sender
  labels:
    name: sender
spec:
  replicas: 1
  selector:
    matchLabels:
      name: sender
  serviceName: sender
  template:
    metadata:
      labels:
        name: sender
    spec:
      containers:
        - name: sender
          image: gyozatech/smtp-sender
          imagePullPolicy: Always
          envFrom:
            - secretRef:
                name: db
          env:
            - name: SENDER_HOST
              value: mailer.gyozatech.space
          resources:
            limits:
              memory: '64Mi'
              cpu: '1'
            requests:
              cpu: '50m'
