mirror of
https://github.com/shadoll/helm-charts.git
synced 2026-10-13 13:51:30 +00:00
The dxflrs/garage image ships as a single static binary with no ENTRYPOINT and no shell, so `args: [server]` alone was exec'd as the command (crash loop) and the shell-based postStart layout-bootstrap hook could never run. Set command: [/garage] explicitly, and replace the automated hook with documented one-time `kubectl exec` steps. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014ZA4cJygj4VPCYVms4TDrH
21 lines
1.5 KiB
Plaintext
21 lines
1.5 KiB
Plaintext
Garage {{ .Chart.AppVersion }} has been deployed.
|
|
|
|
S3 API: http://{{ include "garage.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local:{{ .Values.service.s3ApiPort }}
|
|
Admin API: http://{{ include "garage.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local:{{ .Values.service.adminPort }}
|
|
{{- if .Values.garage.web.enabled }}
|
|
Web: http://{{ include "garage.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local:{{ .Values.service.s3WebPort }}
|
|
{{- end }}
|
|
|
|
REQUIRED one-time setup (Garage does not accept S3/admin traffic until a
|
|
layout is assigned and applied):
|
|
|
|
kubectl -n {{ .Release.Namespace }} exec deploy/{{ include "garage.fullname" . }} -- /garage status
|
|
NODE_ID=$(kubectl -n {{ .Release.Namespace }} exec deploy/{{ include "garage.fullname" . }} -- /garage node id -q | cut -d@ -f1)
|
|
kubectl -n {{ .Release.Namespace }} exec deploy/{{ include "garage.fullname" . }} -- /garage layout assign -z {{ .Values.garage.zone }} -c {{ .Values.garage.capacity }} "$NODE_ID"
|
|
kubectl -n {{ .Release.Namespace }} exec deploy/{{ include "garage.fullname" . }} -- /garage layout apply --version 1
|
|
|
|
Then create a bucket and access key:
|
|
kubectl -n {{ .Release.Namespace }} exec deploy/{{ include "garage.fullname" . }} -- /garage bucket create my-bucket
|
|
kubectl -n {{ .Release.Namespace }} exec deploy/{{ include "garage.fullname" . }} -- /garage key create my-key
|
|
kubectl -n {{ .Release.Namespace }} exec deploy/{{ include "garage.fullname" . }} -- /garage bucket allow --read --write --key my-key my-bucket
|