-
Notifications
You must be signed in to change notification settings - Fork 3
Adjust RBAC setup for full deployment #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
4b59ba4
Add RBAC definitions
rytswd bf016f6
Ensure kustomize takes resources
rytswd 4d58724
Add TODO comment about cell
rytswd 3ca5bf5
Update RBAC
rytswd 7c7b544
Update kustomization
rytswd 25d0db6
Add sample child resources for testing
rytswd 11eac79
Remove incorrect multiorch setup in cell
rytswd 7756d89
Merge branch 'main' into api-spec-rbac
rytswd 6bc730c
Merge branch 'main' into api-spec-rbac
rytswd c8ef74e
Revert "Remove incorrect multiorch setup in cell"
rytswd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,73 @@ | ||
| apiVersion: multigres.com/v1alpha1 | ||
| kind: Cell | ||
| metadata: | ||
| name: kind-cell-sample | ||
| namespace: default | ||
| spec: | ||
| # Logical name of the cell | ||
| name: zone-a | ||
|
|
||
| # Container images for cell components | ||
| images: | ||
| multigateway: ghcr.io/multigres/multigateway:latest | ||
| multiorch: ghcr.io/multigres/multiorch:latest | ||
|
|
||
| # MultiGateway deployment - query routing | ||
| multigateway: | ||
| replicas: 1 | ||
| resources: | ||
| requests: | ||
| cpu: 50m | ||
| memory: 128Mi | ||
| limits: | ||
| cpu: 200m | ||
| memory: 256Mi | ||
|
|
||
| # MultiOrch deployment - cell orchestration | ||
| multiorch: | ||
| replicas: 1 | ||
| resources: | ||
| requests: | ||
| cpu: 50m | ||
| memory: 64Mi | ||
| limits: | ||
| cpu: 200m | ||
| memory: 128Mi | ||
|
|
||
| # Reference to the global topology server | ||
| globalTopoServer: | ||
| rootPath: /multigres | ||
| clientServiceName: kind-global-topo-client | ||
|
|
||
| # Cell-local topology server configuration | ||
| # If managedSpec is set, a TopoServer CR will be created for this cell | ||
| topoServer: | ||
| managedSpec: | ||
| image: quay.io/coreos/etcd:v3.5.12 | ||
| replicas: 1 | ||
|
|
||
| # Storage for etcd data - kind uses local storage provisioner | ||
| dataVolumeClaimTemplate: | ||
| accessModes: | ||
| - ReadWriteOnce | ||
| resources: | ||
| requests: | ||
| storage: 1Gi | ||
|
|
||
| # Resource requirements for etcd - lower for kind | ||
| resources: | ||
| requests: | ||
| cpu: 50m | ||
| memory: 128Mi | ||
| limits: | ||
| cpu: 200m | ||
| memory: 256Mi | ||
|
|
||
| # List of all cells in the cluster for discovery | ||
| allCells: | ||
| - zone-a | ||
|
|
||
| # Topology reconciliation settings | ||
| topologyReconciliation: | ||
| registerCell: true | ||
| pruneTablets: true |
This file contains hidden or 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,94 @@ | ||
| apiVersion: multigres.com/v1alpha1 | ||
| kind: Shard | ||
| metadata: | ||
| name: kind-shard-sample | ||
| namespace: default | ||
| spec: | ||
| # Container images for shard components | ||
| images: | ||
| postgres: postgres:16-alpine | ||
| multipooler: ghcr.io/multigres/multipooler:latest | ||
|
|
||
| # MultiOrch configuration for shard orchestration | ||
| multiOrch: | ||
| cells: | ||
| - zone-a | ||
| image: ghcr.io/multigres/multiorch:latest | ||
| resources: | ||
| requests: | ||
| cpu: 50m | ||
| memory: 64Mi | ||
| limits: | ||
| cpu: 200m | ||
| memory: 256Mi | ||
|
|
||
| # Shard pools - different types of PostgreSQL replicas | ||
| pools: | ||
| # Primary replica pool | ||
| primary: | ||
| type: replica | ||
| cell: zone-a | ||
| database: mydb | ||
| tableGroup: users | ||
| replicas: 1 | ||
|
|
||
| # Storage configuration - kind uses local storage provisioner | ||
| dataVolumeClaimTemplate: | ||
| accessModes: | ||
| - ReadWriteOnce | ||
| resources: | ||
| requests: | ||
| storage: 1Gi | ||
|
|
||
| # PostgreSQL container configuration - lower resources for kind | ||
| postgres: | ||
| resources: | ||
| requests: | ||
| cpu: 100m | ||
| memory: 256Mi | ||
| limits: | ||
| cpu: 500m | ||
| memory: 512Mi | ||
|
|
||
| # MultiPooler container configuration | ||
| multipooler: | ||
| resources: | ||
| requests: | ||
| cpu: 50m | ||
| memory: 64Mi | ||
| limits: | ||
| cpu: 200m | ||
| memory: 128Mi | ||
|
|
||
| # Read replica pool | ||
| replica: | ||
| type: replica | ||
| cell: zone-a | ||
| database: mydb | ||
| tableGroup: users | ||
| replicas: 1 | ||
|
|
||
| dataVolumeClaimTemplate: | ||
| accessModes: | ||
| - ReadWriteOnce | ||
| resources: | ||
| requests: | ||
| storage: 1Gi | ||
|
|
||
| postgres: | ||
| resources: | ||
| requests: | ||
| cpu: 100m | ||
| memory: 256Mi | ||
| limits: | ||
| cpu: 500m | ||
| memory: 512Mi | ||
|
|
||
| multipooler: | ||
| resources: | ||
| requests: | ||
| cpu: 50m | ||
| memory: 64Mi | ||
| limits: | ||
| cpu: 200m | ||
| memory: 128Mi |
This file contains hidden or 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,32 @@ | ||
| apiVersion: multigres.com/v1alpha1 | ||
| kind: TopoServer | ||
| metadata: | ||
| name: kind-toposerver-sample | ||
| namespace: default | ||
| spec: | ||
| # Root path for topology data in etcd | ||
| rootPath: /multigres/global | ||
|
|
||
| # etcd container image | ||
| image: quay.io/coreos/etcd:v3.5.12 | ||
|
|
||
| # Number of etcd replicas (must be odd: 1, 3, 5, etc.) | ||
| # Using 1 replica for kind to minimize resource usage | ||
| replicas: 1 | ||
|
|
||
| # Storage configuration for etcd data - kind uses local storage provisioner | ||
| dataVolumeClaimTemplate: | ||
| accessModes: | ||
| - ReadWriteOnce | ||
| resources: | ||
| requests: | ||
| storage: 1Gi | ||
|
|
||
| # Resource requirements for etcd containers - lower for kind | ||
| resources: | ||
| requests: | ||
| cpu: 50m | ||
| memory: 128Mi | ||
| limits: | ||
| cpu: 200m | ||
| memory: 256Mi |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copying a comment from the commit message:
This may need to be more clear that they are only for testing and not meant to be used as they are.