How to set s3 minio bucket in monolith mode

Hello.

I’m following this guide for deploying Loki in monolith mode.

But I get this error:

init compactor: failed to init delete store: failed to get s3 object: NoSuchBucket: The specified bucket does not exist
	status code: 404, request id: 180A6565D6884401, host id: 
error initialising module: compactor
github.com/grafana/dskit/modules.(*Manager).initModule
	/src/loki/vendor/github.com/grafana/dskit/modules/modules.go:138
github.com/grafana/dskit/modules.(*Manager).InitModuleServices
	/src/loki/vendor/github.com/grafana/dskit/modules/modules.go:108
github.com/grafana/loki/v3/pkg/loki.(*Loki).Run
	/src/loki/pkg/loki/loki.go:492
main.main
	/src/loki/cmd/loki/main.go:129
runtime.main
	/usr/local/go/src/runtime/proc.go:272
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1700
level=error ts=2024-11-22T20:48:14.747286217Z caller=log.go:216 msg="error running loki" err="init compactor: failed to init delete store: failed to get s3 object: NoSuchBucket: The specified bucket does not exist\n\tstatus code: 404, request id: 180A6565D6884401, host id: \nerror initialising module: compactor\ngithub.com/grafana/dskit/modules.(*Manager).initModule\n\t/src/loki/vendor/github.com/grafana/dskit/modules/modules.go:138\ngithub.com/grafana/dskit/modules.(*Manager).InitModuleServices\n\t/src/loki/vendor/github.com/grafana/dskit/modules/modules.go:108\ngithub.com/grafana/loki/v3/pkg/loki.(*Loki).Run\n\t/src/loki/pkg/loki/loki.go:492\nmain.main\n\t/src/loki/cmd/loki/main.go:129\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:272\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1700"

It does not show in the docs how to set the bucket name nor does the error log give the name of the bucket that’s missing. I’m stuck. Can someone please help?

I think the docs sort of implicitely say that the bucket names re chuck, ruler and admin:

When deploying Loki using S3 Storage DO NOT use the default bucket names; chunk, ruler and admin

How would I set the explicitely though or change the names?

And most importantly, how do I create the bucket in minio from the values.yaml file or some other way.