chore: Update manifests after change

This commit is contained in:
2025-12-27 23:02:22 +00:00
parent 567fe3d043
commit 6f7c4e91f5
8 changed files with 229 additions and 34 deletions

View File

@@ -10,7 +10,7 @@ metadata:
namespace: garage
data:
garage.toml: |
replication_factor = 1
replication_factor = 3
metadata_dir = "/var/lib/garage/meta"
data_dir = "/var/lib/garage/data"

View File

@@ -1,9 +1,9 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: garage-main
name: garage-server-1
labels:
app.kubernetes.io/controller: main
app.kubernetes.io/controller: server-1
app.kubernetes.io/instance: garage
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: garage
@@ -16,17 +16,18 @@ spec:
type: Recreate
selector:
matchLabels:
app.kubernetes.io/controller: main
app.kubernetes.io/controller: server-1
app.kubernetes.io/name: garage
app.kubernetes.io/instance: garage
template:
metadata:
annotations:
checksum/configMaps: aecb65cb46684688a356974d7ecaec4abb2d4fed3f71863780e7f35505c7af02
checksum/configMaps: 222a823b4d415557153f5025ab461945265a16cbb7a39b759091687596c24c29
labels:
app.kubernetes.io/controller: main
app.kubernetes.io/controller: server-1
app.kubernetes.io/instance: garage
app.kubernetes.io/name: garage
garage-type: server
spec:
enableServiceLinks: false
serviceAccountName: default
@@ -35,29 +36,17 @@ spec:
hostNetwork: false
hostPID: false
dnsPolicy: ClusterFirst
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: garage-type
operator: In
values:
- server
topologyKey: kubernetes.io/hostname
containers:
- command:
- sleep
- infinity
image: ubuntu:resolute-20251208
imagePullPolicy: IfNotPresent
name: debug
resources:
requests:
cpu: 10m
memory: 32Mi
volumeMounts:
- mountPath: /etc/garage.toml
mountPropagation: None
name: config
readOnly: true
subPath: garage.toml
- mountPath: /var/lib/garage/data
name: data
- mountPath: /var/lib/garage/meta
name: db
- mountPath: /var/lib/garage/snapshots
name: snapshots
- envFrom:
- secretRef:
name: garage-token-secret
@@ -75,19 +64,19 @@ spec:
readOnly: true
subPath: garage.toml
- mountPath: /var/lib/garage/data
name: data
name: data-1
- mountPath: /var/lib/garage/meta
name: db
name: db-1
- mountPath: /var/lib/garage/snapshots
name: snapshots
volumes:
- configMap:
name: garage
name: config
- name: data
- name: data-1
persistentVolumeClaim:
claimName: garage-data
- name: db
- name: db-1
persistentVolumeClaim:
claimName: garage-db
- name: snapshots

View File

@@ -0,0 +1,69 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: garage-server-2
labels:
app.kubernetes.io/controller: server-2
app.kubernetes.io/instance: garage
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: garage
helm.sh/chart: garage-4.5.0
namespace: garage
spec:
revisionHistoryLimit: 3
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app.kubernetes.io/controller: server-2
app.kubernetes.io/name: garage
app.kubernetes.io/instance: garage
template:
metadata:
annotations:
checksum/configMaps: 222a823b4d415557153f5025ab461945265a16cbb7a39b759091687596c24c29
labels:
app.kubernetes.io/controller: server-2
app.kubernetes.io/instance: garage
app.kubernetes.io/name: garage
garage-type: server
spec:
enableServiceLinks: false
serviceAccountName: default
automountServiceAccountToken: true
hostIPC: false
hostNetwork: false
hostPID: false
dnsPolicy: ClusterFirst
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: garage-type
operator: In
values:
- server
topologyKey: kubernetes.io/hostname
containers:
- envFrom:
- secretRef:
name: garage-token-secret
image: dxflrs/garage:v2.1.0
imagePullPolicy: IfNotPresent
name: main
resources:
requests:
cpu: 10m
memory: 128Mi
volumeMounts:
- mountPath: /etc/garage.toml
mountPropagation: None
name: config
readOnly: true
subPath: garage.toml
volumes:
- configMap:
name: garage
name: config

View File

@@ -0,0 +1,69 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: garage-server-3
labels:
app.kubernetes.io/controller: server-3
app.kubernetes.io/instance: garage
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: garage
helm.sh/chart: garage-4.5.0
namespace: garage
spec:
revisionHistoryLimit: 3
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app.kubernetes.io/controller: server-3
app.kubernetes.io/name: garage
app.kubernetes.io/instance: garage
template:
metadata:
annotations:
checksum/configMaps: 222a823b4d415557153f5025ab461945265a16cbb7a39b759091687596c24c29
labels:
app.kubernetes.io/controller: server-3
app.kubernetes.io/instance: garage
app.kubernetes.io/name: garage
garage-type: server
spec:
enableServiceLinks: false
serviceAccountName: default
automountServiceAccountToken: true
hostIPC: false
hostNetwork: false
hostPID: false
dnsPolicy: ClusterFirst
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: garage-type
operator: In
values:
- server
topologyKey: kubernetes.io/hostname
containers:
- envFrom:
- secretRef:
name: garage-token-secret
image: dxflrs/garage:v2.1.0
imagePullPolicy: IfNotPresent
name: main
resources:
requests:
cpu: 10m
memory: 128Mi
volumeMounts:
- mountPath: /etc/garage.toml
mountPropagation: None
name: config
readOnly: true
subPath: garage.toml
volumes:
- configMap:
name: garage
name: config

View File

@@ -22,7 +22,7 @@ spec:
template:
metadata:
annotations:
checksum/configMaps: aecb65cb46684688a356974d7ecaec4abb2d4fed3f71863780e7f35505c7af02
checksum/configMaps: 222a823b4d415557153f5025ab461945265a16cbb7a39b759091687596c24c29
labels:
app.kubernetes.io/controller: webui
app.kubernetes.io/instance: garage

View File

@@ -0,0 +1,34 @@
apiVersion: v1
kind: Service
metadata:
name: garage-2
labels:
app.kubernetes.io/instance: garage
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: garage
app.kubernetes.io/service: garage-2
helm.sh/chart: garage-4.5.0
namespace: garage
spec:
type: ClusterIP
ports:
- port: 3903
targetPort: 3903
protocol: TCP
name: admin
- port: 3901
targetPort: 3901
protocol: TCP
name: rpc
- port: 3900
targetPort: 3900
protocol: TCP
name: s3
- port: 3902
targetPort: 3902
protocol: TCP
name: web
selector:
app.kubernetes.io/controller: server-2
app.kubernetes.io/instance: garage
app.kubernetes.io/name: garage

View File

@@ -0,0 +1,34 @@
apiVersion: v1
kind: Service
metadata:
name: garage-3
labels:
app.kubernetes.io/instance: garage
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: garage
app.kubernetes.io/service: garage-3
helm.sh/chart: garage-4.5.0
namespace: garage
spec:
type: ClusterIP
ports:
- port: 3903
targetPort: 3903
protocol: TCP
name: admin
- port: 3901
targetPort: 3901
protocol: TCP
name: rpc
- port: 3900
targetPort: 3900
protocol: TCP
name: s3
- port: 3902
targetPort: 3902
protocol: TCP
name: web
selector:
app.kubernetes.io/controller: server-3
app.kubernetes.io/instance: garage
app.kubernetes.io/name: garage

View File

@@ -29,6 +29,6 @@ spec:
protocol: TCP
name: web
selector:
app.kubernetes.io/controller: main
app.kubernetes.io/controller: server-1
app.kubernetes.io/instance: garage
app.kubernetes.io/name: garage