aboutsummaryrefslogtreecommitdiff
path: root/script/k8s/daemon.yaml
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-04-05 15:04:27 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-04-07 16:12:35 +0200
commit7e1ac51b580afa8e900206e7cc49791ed0a00d94 (patch)
tree2a0467b90a2b1ccb716a0e7555f033246367f035 /script/k8s/daemon.yaml
parent94f1e48fff7652f6b7195fea4570d3fa8b5c98f6 (diff)
downloadgarage-7e1ac51b580afa8e900206e7cc49791ed0a00d94.tar.gz
garage-7e1ac51b580afa8e900206e7cc49791ed0a00d94.zip
Add files to quickly test k8s
Diffstat (limited to 'script/k8s/daemon.yaml')
-rw-r--r--script/k8s/daemon.yaml52
1 files changed, 52 insertions, 0 deletions
diff --git a/script/k8s/daemon.yaml b/script/k8s/daemon.yaml
new file mode 100644
index 00000000..fedc46e0
--- /dev/null
+++ b/script/k8s/daemon.yaml
@@ -0,0 +1,52 @@
+apiVersion: apps/v1
+kind: StatefulSet
+metadata:
+ name: garage
+spec:
+ selector:
+ matchLabels:
+ app: garage
+ serviceName: "garage"
+ replicas: 3
+ template:
+ metadata:
+ labels:
+ app: garage
+ spec:
+ terminationGracePeriodSeconds: 10
+ containers:
+ - name: garage
+ image: dxflrs/amd64_garage:v0.7.0-rc1
+ ports:
+ - containerPort: 3900
+ name: s3-api
+ - containerPort: 3902
+ name: web-api
+ volumeMounts:
+ - name: fast
+ mountPath: /mnt/fast
+ - name: slow
+ mountPath: /mnt/slow
+ - name: etc
+ mountPath: /etc/garage.toml
+ subPath: garage.toml
+ volumes:
+ - name: etc
+ configMap:
+ name: garage-config
+ volumeClaimTemplates:
+ - metadata:
+ name: fast
+ spec:
+ accessModes: [ "ReadWriteOnce" ]
+ resources:
+ requests:
+ storage: 100Mi
+ - metadata:
+ name: slow
+ spec:
+ accessModes: [ "ReadWriteOnce" ]
+ resources:
+ requests:
+ storage: 100Mi
+