apiVersion: apps/v1
kind: Deployment

metadata:
  name: postfix
  labels: &labels
    app.kubernetes.io/name: postfix
    app.kubernetes.io/version: 3.7.10
    app.kubernetes.io/instance: general
    app.kubernetes.io/component: smtp-server
    app.kubernetes.io/part-of: MTA

spec:
  selector:
    matchLabels:
      app.kubernetes.io/name: postfix
      app.kubernetes.io/instance: general

  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 1
  minReadySeconds: 10

  template:
    metadata:
      name: postfix
      labels: *labels
    spec:
      containers:
      - name: postfix
        image: docker.kodo.org.uk/docker/postfix:3.7.10-32
        imagePullPolicy: IfNotPresent
        resources:
          requests:
            memory: 50Mi
