Skip to content

Commit 3f0e4bb

Browse files
authored
Merge pull request #826 from lsst-it/IT-6056_loki_user_antu
(antu) Add cephobjectstoreuser loki
2 parents 2296eeb + 64e6d60 commit 3f0e4bb

File tree

5 files changed

+95
-0
lines changed

5 files changed

+95
-0
lines changed

fleet/lib/rook-ceph-conf/charts/antu/templates/cephobjectstore-o11y.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,13 @@ spec:
5757
name: rook-ceph-rgw-o11y
5858
port:
5959
number: 80
60+
---
61+
apiVersion: storage.k8s.io/v1
62+
kind: StorageClass
63+
metadata:
64+
name: o11y
65+
provisioner: rook-ceph.ceph.rook.io/bucket
66+
parameters:
67+
objectStoreName: o11y
68+
objectStoreNamespace: rook-ceph
69+
reclaimPolicy: Retain
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
apiVersion: ceph.rook.io/v1
3+
kind: CephObjectStoreUser
4+
metadata:
5+
name: s3-loki
6+
namespace: rook-ceph
7+
spec:
8+
store: o11y
9+
clusterNamespace: rook-ceph
10+
quotas:
11+
maxBuckets: 3
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
apiVersion: objectbucket.io/v1alpha1
3+
kind: ObjectBucketClaim
4+
metadata:
5+
name: logs-admin
6+
namespace: rook-ceph
7+
spec:
8+
bucketName: logs-admin
9+
storageClassName: o11y
10+
additionalConfig:
11+
bucketOwner: s3-loki
12+
bucketMaxSize: 5Ti
13+
bucketLifecycle: |
14+
{
15+
"Rules": [
16+
{
17+
"ID": "AbortIncompleteMultipartUploads",
18+
"Status": "Enabled",
19+
"Prefix": "",
20+
"AbortIncompleteMultipartUpload": {
21+
"DaysAfterInitiation": 1
22+
}
23+
}
24+
]
25+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
apiVersion: objectbucket.io/v1alpha1
2+
kind: ObjectBucketClaim
3+
metadata:
4+
name: logs-chunks
5+
namespace: rook-ceph
6+
spec:
7+
bucketName: logs-chunks
8+
storageClassName: o11y
9+
additionalConfig:
10+
bucketOwner: s3-loki
11+
bucketMaxSize: 5Ti
12+
bucketLifecycle: |
13+
{
14+
"Rules": [
15+
{
16+
"ID": "AbortIncompleteMultipartUploads",
17+
"Status": "Enabled",
18+
"Prefix": "",
19+
"AbortIncompleteMultipartUpload": {
20+
"DaysAfterInitiation": 1
21+
}
22+
}
23+
]
24+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
apiVersion: objectbucket.io/v1alpha1
3+
kind: ObjectBucketClaim
4+
metadata:
5+
name: logs-ruler
6+
namespace: rook-ceph
7+
spec:
8+
bucketName: logs-ruler
9+
storageClassName: o11y
10+
additionalConfig:
11+
bucketOwner: s3-loki
12+
bucketMaxSize: 5Ti
13+
bucketLifecycle: |
14+
{
15+
"Rules": [
16+
{
17+
"ID": "AbortIncompleteMultipartUploads",
18+
"Status": "Enabled",
19+
"Prefix": "",
20+
"AbortIncompleteMultipartUpload": {
21+
"DaysAfterInitiation": 1
22+
}
23+
}
24+
]
25+
}

0 commit comments

Comments
 (0)