mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-01-11 20:40:24 +01:00
chore: minio bucket loki - add lifecycle rules
This commit is contained in:
@@ -17,6 +17,20 @@ resource "minio_s3_bucket" "k3s-test-1-loki-admin" {
|
||||
acl = "private"
|
||||
}
|
||||
|
||||
# ==============================================
|
||||
# Bucket Lifecycle
|
||||
# ==============================================
|
||||
|
||||
resource "minio_ilm_policy" "loki-chunks-expire-rules" {
|
||||
bucket = minio_s3_bucket.k3s-test-1-loki-chunks.bucket
|
||||
|
||||
rule {
|
||||
id = "expire-7d"
|
||||
status = "Enabled"
|
||||
expiration = "7d"
|
||||
}
|
||||
}
|
||||
|
||||
# ==============================================
|
||||
# User & Permission
|
||||
# ==============================================
|
||||
|
||||
Reference in New Issue
Block a user