-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ENH] Add compaction service memberlist propagation (#1946)
## Description of changes *Summarize the changes made by this PR.* - Improvements & Bug fixes - ... - New functionality - This PR adds memberlist manager for compaction service. ## Test plan *How are these changes tested?* - [ ] Tests pass locally with `pytest` for python, `yarn test` for js, `cargo test` for rust ## Documentation Changes *Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the [docs repository](https://github.com/chroma-core/docs)?*
- Loading branch information
Showing
5 changed files
with
122 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
k8s/distributed-chroma/templates/compaction-service-memberlist-cr.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# These kubernetes manifests are UNDER ACTIVE DEVELOPMENT and are not yet ready for production use. | ||
# They will be used for the upcoming distributed version of chroma. They are not even ready | ||
# for testing yet. Please do not use them unless you are working on the distributed version of chroma. | ||
|
||
apiVersion: chroma.cluster/v1 | ||
kind: MemberList | ||
metadata: | ||
name: compaction-service-memberlist | ||
namespace: {{ .Values.namespace}} | ||
spec: | ||
members: | ||
|
||
--- | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: compaction-service-memberlist-readerwriter | ||
rules: | ||
- apiGroups: | ||
- chroma.cluster | ||
resources: | ||
- memberlists | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
# TODO: FIX THIS LEAKY PERMISSION | ||
- create | ||
- update | ||
- patch | ||
- delete | ||
|
||
--- | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: sysdb-compaction-service-memberlist-binding | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: compaction-service-memberlist-readerwriter | ||
subjects: | ||
- kind: ServiceAccount | ||
name: sysdb-serviceaccount | ||
namespace: {{ .Values.namespace }} | ||
|
||
--- | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
# Awkward name, but this lets the compaction-service-serviceaccount read | ||
# the compaction-service-memberlist. | ||
name: compaction-service-compaction-service-memberlist-binding | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: compaction-service-memberlist-readerwriter | ||
subjects: | ||
- kind: ServiceAccount | ||
name: compaction-service-serviceaccount | ||
namespace: {{ .Values.namespace }} | ||
|
||
--- | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: compaction-service-memberlist-readerwriter-binding | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: compaction-service-memberlist-readerwriter | ||
subjects: | ||
- kind: ServiceAccount | ||
name: default | ||
namespace: {{ .Values.namespace }} |