diff --git a/tasks/mail.yaml b/tasks/mail.yaml index 006b124..50f51c7 100644 --- a/tasks/mail.yaml +++ b/tasks/mail.yaml @@ -42,6 +42,22 @@ name: ca-issuer kind: ClusterIssuer +- name: Create a persistent volume claim for mail + k8s: + state: present + definition: + apiVersion: v1 + kind: PersistentVolumeClaim + metadata: + name: dkim + namespace: mail + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 512Mi + - name: Create a persistent volume claim for mail k8s: state: present @@ -131,6 +147,8 @@ mountPath: /etc/letsencrypt - name: mail mountPath: /var/mail + - name: dkim + mountPath: /tmp/docker-mailserver/opendkim ports: - containerPort: 25 - containerPort: 465 @@ -198,6 +216,9 @@ - name: mail persistentVolumeClaim: claimName: mail + - name: dkim + PersistentVolumeClaim: + claimName: dkim - name: Expose deployment as a service k8s: