-
Notifications
You must be signed in to change notification settings - Fork 1
/
rook-resources.yaml
96 lines (94 loc) · 2.43 KB
/
rook-resources.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Assuming rook operator and ceph cluster is created
# optional: create user for milvus, if ceph used as s3 backend
# apiVersion: ceph.rook.io/v1
# kind: CephObjectStoreUser
# metadata:
# name: milvus-user
# namespace: rook-ceph # namespace:cluster
# spec:
# store: my-store
# displayName: "milvus user"
---
# topic for created for bucket notification
apiVersion: ceph.rook.io/v1
kind: CephBucketTopic
metadata:
name: kn-text-topic
spec:
objectStoreName: my-store
objectStoreNamespace: rook-ceph
opaqueData: [email protected]
persistent: true
endpoint:
http:
uri: http://text-channel-kn-channel.default.svc.cluster.local # default channel uri
disableVerifySSL: true
sendCloudEvents: true
---
# topic for created for bucket notification
apiVersion: ceph.rook.io/v1
kind: CephBucketTopic
metadata:
name: kn-image-topic
spec:
objectStoreName: my-store
objectStoreNamespace: rook-ceph
opaqueData: [email protected]
persistent: true
endpoint:
http:
uri: http://image-channel-kn-channel.default.svc.cluster.local # default channel uri
disableVerifySSL: true
sendCloudEvents: true
---
# bucket notifications defined for event such as put and copy object
apiVersion: ceph.rook.io/v1
kind: CephBucketNotification
metadata:
name: text-notification
spec:
topic: kn-text-topic
events:
- s3:ObjectCreated:Put
- s3:ObjectCreated:Copy
---
apiVersion: ceph.rook.io/v1
kind: CephBucketNotification
metadata:
name: image-notification
spec:
topic: kn-image-topic
events:
- s3:ObjectCreated:Put
- s3:ObjectCreated:Copy
---
# storage class for OBCs
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: rook-ceph-delete-bucket
provisioner: rook-ceph.ceph.rook.io/bucket # driver:namespace:cluster
reclaimPolicy: Delete
parameters:
objectStoreName: my-store
objectStoreNamespace: rook-ceph # namespace:cluster
---
apiVersion: objectbucket.io/v1alpha1
kind: ObjectBucketClaim
metadata:
name: ceph-notification-bucket-text
labels:
bucket-notification-text-notification: text-notification # reference for notification
spec:
generateBucketName: ceph-bkt
storageClassName: rook-ceph-delete-bucket
---
apiVersion: objectbucket.io/v1alpha1
kind: ObjectBucketClaim
metadata:
name: ceph-notification-bucket-image
labels:
bucket-notification-image-notification: image-notification # reference for notification
spec:
generateBucketName: ceph-bkt
storageClassName: rook-ceph-delete-bucket