From f81d47f04a7d539e3a2874b54111d50d5ed06ce1 Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Tue, 19 Sep 2023 15:51:28 +0200
Subject: Run garage with hostPath volumes
---
.../manifests.d/tyilnet/base-system/garage/deployment.yaml | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/data.d/k3s-master/manifests.d/tyilnet/base-system/garage/deployment.yaml b/data.d/k3s-master/manifests.d/tyilnet/base-system/garage/deployment.yaml
index cc89211..68b920f 100644
--- a/data.d/k3s-master/manifests.d/tyilnet/base-system/garage/deployment.yaml
+++ b/data.d/k3s-master/manifests.d/tyilnet/base-system/garage/deployment.yaml
@@ -27,6 +27,7 @@ spec:
app.kubernetes.io/name: garage
app.kubernetes.io/part-of: base-system
spec:
+ nodeName: mieshu.tyil.net
containers:
- image: dxflrs/garage:v0.8.0
name: garage
@@ -42,19 +43,18 @@ spec:
- mountPath: /var/lib/garage/data
name: data
- mountPath: /etc/garage.toml
- subPath: config.toml
name: config
restartPolicy: Always
volumes:
- name: data
- persistentVolumeClaim:
- claimName: garage-data
+ hostPath:
+ path: /mnt/pool/garage/data
- name: meta
- persistentVolumeClaim:
- claimName: garage-meta
+ hostPath:
+ path: /mnt/pool/garage/meta
- name: config
- secret:
- secretName: garage
+ hostPath:
+ path: /etc/garage.toml
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
--
cgit v1.1