deployment.yaml (2157B)
1 apiVersion: v1 2 kind: PersistentVolumeClaim 3 metadata: 4 name: mjolnir-fluffy-persistent-storage 5 namespace: matrix 6 spec: 7 accessModes: 8 - ReadWriteMany 9 resources: 10 requests: 11 storage: 512Mi 12 --- 13 apiVersion: apps/v1 14 kind: Deployment 15 metadata: 16 name: mjolnir-fluffy 17 namespace: matrix 18 spec: 19 replicas: 0 20 selector: 21 matchLabels: 22 app: mjolnir-fluffy 23 strategy: 24 rollingUpdate: 25 maxSurge: 25% 26 maxUnavailable: 25% 27 type: RollingUpdate 28 template: 29 metadata: 30 labels: 31 app: mjolnir-fluffy 32 spec: 33 containers: 34 - image: ghcr.io/mtrnord/draupnir:no-root 35 #image: gnuxie/draupnir:v2.2.0 36 imagePullPolicy: IfNotPresent 37 livenessProbe: 38 failureThreshold: 3 39 httpGet: 40 path: /healthz 41 port: 8080 42 initialDelaySeconds: 30 43 periodSeconds: 30 44 name: mjolnir-fluffy-container 45 resources: 46 requests: 47 ephemeral-storage: 1024Mi 48 cpu: 100m 49 memory: 200Mi 50 limits: 51 ephemeral-storage: 2048Mi 52 cpu: 2000m 53 memory: 2000Mi 54 readinessProbe: 55 httpGet: 56 path: /health 57 port: 8080 58 initialDelaySeconds: 30 59 periodSeconds: 30 60 securityContext: 61 allowPrivilegeEscalation: false 62 capabilities: 63 drop: 64 - ALL 65 readOnlyRootFilesystem: true 66 runAsNonRoot: true 67 runAsGroup: 1000 68 volumeMounts: 69 - mountPath: /data/config/production.yaml 70 name: config-volume 71 subPath: production.yaml 72 - mountPath: /data/storage 73 name: storage 74 - mountPath: /tmp 75 name: tmp 76 volumes: 77 - configMap: 78 name: mjolnir-fluffy-config 79 name: config-volume 80 - name: storage 81 persistentVolumeClaim: 82 claimName: mjolnir-fluffy-persistent-storage 83 - name: tmp 84 emptyDir: 85 sizeLimit: 2048Mi