mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-12 07:32:40 +02: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"
|
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
|
# User & Permission
|
||||||
# ==============================================
|
# ==============================================
|
||||||
|
|||||||
Reference in New Issue
Block a user