| Matthias Andreas Benkard | 3cf43e3 | 2026-11-05 22:28:28 +0100 | [diff] [blame] | 1 | apiVersion: apps/v1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: mailcow-fake |
| 5 | namespace: mulk |
| 6 | labels: |
| 7 | name: mailcow-fake |
| 8 | k8s-app: mailcow-fake |
| 9 | |
| 10 | spec: |
| 11 | replicas: 1 |
| 12 | |
| 13 | strategy: |
| 14 | rollingUpdate: |
| 15 | maxSurge: 1 |
| 16 | maxUnavailable: 1 |
| 17 | |
| 18 | selector: |
| 19 | matchLabels: |
| 20 | k8s-app: mailcow-fake |
| 21 | name: mailcow-fake |
| 22 | |
| 23 | template: |
| 24 | metadata: |
| 25 | labels: |
| 26 | name: mailcow-fake |
| 27 | k8s-app: mailcow-fake |
| 28 | |
| 29 | spec: |
| 30 | imagePullSecrets: |
| 31 | - name: portus-token |
| 32 | |
| 33 | runtimeClassName: kata |
| 34 | |
| 35 | containers: |
| 36 | - name: master |
| 37 | image: docker.benkard.de/mulk/mailcow:latest |
| 38 | |
| 39 | args: |
| 40 | - "prefetch" |
| 41 | |
| 42 | securityContext: |
| 43 | # In a Kata container, this only gives the container full |
| 44 | # access to the guest VM rather than the host. (To ensure |
| 45 | # this, it is important to set privileged_without_host_devices |
| 46 | # = true in the [plugins.cri.containerd.runtimes.kata] section |
| 47 | # of containerd's config.toml.) |
| 48 | privileged: true |
| 49 | |
| 50 | volumeMounts: |
| 51 | - name: docker-data |
| 52 | subPath: vfs |
| 53 | mountPath: /var/lib/docker/vfs |
| 54 | - name: docker-data |
| 55 | subPath: image |
| 56 | mountPath: /var/lib/docker/image |
| 57 | - name: docker-data |
| 58 | subPath: overlay2 |
| 59 | mountPath: /var/lib/docker/overlay2 |
| 60 | |
| 61 | volumes: |
| 62 | - name: docker-data |
| 63 | persistentVolumeClaim: |
| 64 | claimName: mailcow-docker |