Allow configuration of cluster base domain#2930
Allow configuration of cluster base domain#2930arminbuerkle wants to merge 19 commits intolinkerd:masterfrom
Conversation
e4a5a66 to
b4e9a21
Compare
|
Thanks @arminbuerkle! As one first bit of feedback, I think we'll need to start configuring the proxy's discovery suffixes: The injector is going to have to be updated to support setting Because this branch is so large, it is likely to require a substantial amount of testing and review; and in that time it may run into conflicts with master as new features are merged in the next week or two. I wonder if this can be broken into smaller PRs so that we can more easily ship tested pieces of this? For instance, if you can propose changes to the various controller components individually, and then follow with changes to the install flow that support setting non-default cluster names... We find that this incremental approach works best when adding these types of cross-cutting features to the project. |
|
Hi @olix0r, i started splitting this MR into smaller ones starting with #2950 The controller part still has a lot of changes, mostly auto generated though (proto, .golden, updating tests so it doesn't use AFAIK I can add The value will probably be the same as for profile suffixes, since it needs to change when external profiles are enabled? Edit: Just added the other PRs to https://github.com/alfatraining/linkerd2/pulls. I'll add them one after the other. |
|
@arminbuerkle thanks! That sounds correct. No changes should be necessary on the Rust side, as that configuration is already honored. |
Signed-off-by: Armin Buerkle <[email protected]>
Signed-off-by: Armin Buerkle <[email protected]>
Signed-off-by: Armin Buerkle <[email protected]>
Signed-off-by: Armin Buerkle <[email protected]>
Signed-off-by: Armin Buerkle <[email protected]>
Signed-off-by: Armin Buerkle <[email protected]>
This probably needs a default fallback to `cluster.local`. Otherwise when you upgrade your control plane it'll remove "cluster.local" from every proxy injection since it'll most likely not be set in the global config. Needs testing. Signed-off-by: Armin Buerkle <[email protected]>
Required to tap into resources Signed-off-by: Armin Buerkle <[email protected]>
Signed-off-by: Armin Buerkle <[email protected]>
Changes: - Add `-cluster-domain` flag to web srv - Remove `clusterZoneSuffix` in profiles - Should be set by cmd default value - Added `svc.` to pkg/profiles/template.go - Update `.golden` templates Signed-off-by: Armin Buerkle <[email protected]>
Signed-off-by: Armin Buerkle <[email protected]>
Signed-off-by: Armin Buerkle <[email protected]>
Signed-off-by: Armin Buerkle <[email protected]>
Signed-off-by: Armin Buerkle <[email protected]>
Signed-off-by: Armin Buerkle <[email protected]>
Signed-off-by: Armin Buerkle <[email protected]>
Signed-off-by: Armin Buerkle <[email protected]>
Signed-off-by: Armin Buerkle <[email protected]>
Signed-off-by: Armin Buerkle <[email protected]>
b4e9a21 to
cefcb69
Compare
|
Thanks @arminbuerkle, we will take a look soon! |
|
@arminbuerkle Thanks again for taking this on. It's going to help out a number of people in the community. To confirm, you're going to split this PR into multiple smaller PRs, starting with #2950, right? If that's case, is it ok if we close this one? |
|
@ihcsim yes. I'm going to close this though i'll keep this branch updated as good as i can if anyone wants to build it themselve and try. As i said before we're running this on two of our own clusters with different domains. The branches for the other PRs are already created and linked above, though #2950 needs to be merged first since the others depend on that. |
|
Appreciate it. We will try to get to #2950 soon as we know it affects you and a number of other users. |
PR for #1720
Adds a global
--cluster-domainflag to linkerd which allows configuring linkerd in a noncluster.localsetup.You can test it by running
I tested it with
go test -cover -race ./...as well as deployed it into our own cluster.I still need to test whether upgrading your cluster works since the
cluster-domainflag is now required in the global config and set tocluster.localby default.Changing the value however is something that needs a reinstall.
I'll squash the commits when the PR looks.