| apiVersion: apps/v1 |
| kind: Deployment |
| metadata: |
| name: mailcow-fake |
| namespace: mulk |
| labels: |
| name: mailcow-fake |
| k8s-app: mailcow-fake |
| |
| spec: |
| replicas: 1 |
| |
| strategy: |
| rollingUpdate: |
| maxSurge: 1 |
| maxUnavailable: 1 |
| |
| selector: |
| matchLabels: |
| k8s-app: mailcow-fake |
| name: mailcow-fake |
| |
| template: |
| metadata: |
| labels: |
| name: mailcow-fake |
| k8s-app: mailcow-fake |
| |
| spec: |
| imagePullSecrets: |
| - name: portus-token |
| |
| runtimeClassName: kata |
| |
| containers: |
| - name: master |
| image: docker.benkard.de/mulk/mailcow:latest |
| |
| args: |
| - "prefetch" |
| |
| securityContext: |
| # In a Kata container, this only gives the container full |
| # access to the guest VM rather than the host. (To ensure |
| # this, it is important to set privileged_without_host_devices |
| # = true in the [plugins.cri.containerd.runtimes.kata] section |
| # of containerd's config.toml.) |
| privileged: true |
| |
| volumeMounts: |
| - name: docker-data |
| subPath: vfs |
| mountPath: /var/lib/docker/vfs |
| - name: docker-data |
| subPath: image |
| mountPath: /var/lib/docker/image |
| - name: docker-data |
| subPath: overlay2 |
| mountPath: /var/lib/docker/overlay2 |
| |
| volumes: |
| - name: docker-data |
| persistentVolumeClaim: |
| claimName: mailcow-docker |