diff --git a/infa/k8s/raven/raven-deployment.yaml b/infa/k8s/raven/raven-deployment.yaml new file mode 100644 index 0000000..b8abd7d --- /dev/null +++ b/infa/k8s/raven/raven-deployment.yaml @@ -0,0 +1,47 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: raven-server +spec: + replicas: 1 + selector: + matchLabels: + app: raven + template: + metadata: + labels: + app: raven + spec: + containers: + - name: raven + image: ghcr.io/lsflk/raven:latest + ports: + - containerPort: 143 + - containerPort: 993 + - containerPort: 24 + - containerPort: 12345 + env: + - name: DB_FILE + value: /app/data/databases/shared.db + volumeMounts: + - name: raven-data + mountPath: /app/data + - name: raven-config + mountPath: /etc/raven + - name: raven-certs + mountPath: /certs + securityContext: + runAsUser: 0 + runAsGroup: 0 + volumes: + - name: raven-data + persistentVolumeClaim: + claimName: raven-data-pvc + - name: raven-config + hostPath: + path: /root/mail/silver/services/silver-config/raven/conf + type: Directory + - name: raven-certs + hostPath: + path: /root/mail/silver/services/silver-config/raven/certs + type: Directory