-
Notifications
You must be signed in to change notification settings - Fork 6
Support multicluster resource routing #568
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 15 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
8b31812
Document initial ideas to route multicluster resources
PhilippMatthes 099e208
Add 1:n mapping in clusters
SoWieMarkus 9e0cacc
Remove example multicluster configuration from cortex-scheduling-cont…
SoWieMarkus b8d967d
Resolve linter issues
SoWieMarkus 204cf2c
Add Hypervisor resource router to multicluster client
SoWieMarkus 7a8a8fb
Feedback
SoWieMarkus 0f75530
Lint fix
SoWieMarkus eb4b793
Fix copy paste error
SoWieMarkus a1763a5
Initial draft of multi-az multicluster guide [skip ci]
PhilippMatthes 0d3b9e9
CodeRabbit feedback
SoWieMarkus 1b6d05c
Feedback
SoWieMarkus 2c0caa3
Feedback
SoWieMarkus b10b092
Replace .For with .MultiCluster
SoWieMarkus 88b96de
Merge branch 'main' into multicluster-routing
SoWieMarkus 11b7dfc
Fix hypervisor overcommit manager
SoWieMarkus fd4aef5
Advance guide [skip ci]
PhilippMatthes 02558b2
PR feedback
PhilippMatthes 0691d4e
Add outcome
PhilippMatthes 6dda060
Refactor clusterForWrite logic and enhance tests for router matching
SoWieMarkus 8450a16
Fix error message casing in clusterForWrite function
SoWieMarkus 34fe33d
Enhance error handling for duplicate resources in multi-cluster Get a…
SoWieMarkus f93f8cb
Implement soft fail if cluster is not available
SoWieMarkus b46676a
Enhance Get and List methods to log non-NotFound errors and prevent s…
SoWieMarkus fa723fe
Use corev1.LabelTopologyZone
PhilippMatthes 3be29ad
Merge branch 'main' into multicluster-routing
SoWieMarkus 0c24a21
Improve formatting and readability in SetupWithManager function
SoWieMarkus 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
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
2 changes: 1 addition & 1 deletion
2
docs/guides/multicluster/cortex-remote.yaml → ...ides/multicluster/cortex-remote-az-a.yaml
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,27 @@ | ||
| kind: Cluster | ||
| apiVersion: kind.x-k8s.io/v1alpha4 | ||
| name: cortex-remote-az-b | ||
| nodes: | ||
| - role: control-plane | ||
| extraPortMappings: | ||
| - containerPort: 6443 | ||
| hostPort: 8445 | ||
| extraMounts: | ||
| - hostPath: /tmp/root-ca-home.pem | ||
| containerPath: /etc/ca-certificates/root-ca.pem | ||
| kubeadmConfigPatches: | ||
| - | | ||
| kind: ClusterConfiguration | ||
| apiServer: | ||
| extraArgs: | ||
| oidc-client-id: "https://host.docker.internal:8443" # = audience | ||
| oidc-issuer-url: "https://host.docker.internal:8443" | ||
| oidc-username-claim: sub | ||
| oidc-ca-file: /etc/ca-certificates/root-ca.pem | ||
| certSANs: | ||
| - api-proxy | ||
| - api-proxy.default.svc | ||
| - api-proxy.default.svc.cluster.local | ||
| - localhost | ||
| - 127.0.0.1 | ||
| - host.docker.internal |
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,13 @@ | ||
| apiVersion: kvm.cloud.sap/v1 | ||
| kind: Hypervisor | ||
| metadata: | ||
| name: hypervisor-1-az-a | ||
| labels: | ||
| topology.kubernetes.io/zone: cortex-remote-az-a | ||
| --- | ||
| apiVersion: kvm.cloud.sap/v1 | ||
| kind: Hypervisor | ||
| metadata: | ||
| name: hypervisor-2-az-a | ||
| labels: | ||
| topology.kubernetes.io/zone: cortex-remote-az-a |
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,13 @@ | ||
| apiVersion: kvm.cloud.sap/v1 | ||
| kind: Hypervisor | ||
| metadata: | ||
| name: hypervisor-1-az-b | ||
| labels: | ||
| topology.kubernetes.io/zone: cortex-remote-az-b | ||
| --- | ||
| apiVersion: kvm.cloud.sap/v1 | ||
| kind: Hypervisor | ||
| metadata: | ||
| name: hypervisor-2-az-b | ||
| labels: | ||
| topology.kubernetes.io/zone: cortex-remote-az-b |
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.