Skip to content
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

refactor ingress backend pod detection #11

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

tjamet
Copy link
Contributor

@tjamet tjamet commented Nov 29, 2024

Move the detection at the ingress level rather than per rule

Goals

  • Prepare the case to support multiple ingress controllers through CRDs
  • Increase code readability and testeability
Committer details Local-Branch: HEAD
Related changes
Future changes
Prevent changing dnsEndpoint name and namespace attributes in createOrUpdate (#12) This is not permitted by controllerRuntime and should not be performed
Refactor DNS name extraction (#13) Goal ---

Ease the implementation of CRD based multi-ingress controller traffic routing

Add integration test (#16) Goal ---

Ensure that the chart provides enough privileges for the controller to work

Add fine-grain ingress DNS control through CRD (#14) Context ---

Handling usual cluster operations, we often come to operate higher risk changes like bumping ingress controller
versions, changing the underneath ingress service type (for example moving from an AWS ELB to an AWS NLB).

Doing so, the safest way would be to be able to provision a new ingress controller and progressively migrating traffic
to the new instance.

Problems

Currently, traffic controller reads the host and load balancer reference using
the ingress status.

This prevents from being able to handle and control weighted records across the different ingress controllers.

Goal

Enable fine-grained routing between various ingress controllers in the same cluster.

Unblocked use-cases

  • Progressively change and test the ingress infrastructure (load balancer, ...) and versions
  • Allow sharding ingress controllers at the DNS level

@tjamet tjamet force-pushed the maiao.I12dc66552733eaa5e6258df00a659d6bf410f9c3 branch from ec84cff to d13fb31 Compare December 10, 2024 10:54
@tjamet tjamet force-pushed the maiao.I14936b3ef0558e5d5b5fd6f251264ddfa7b8ad65 branch from fcaf4a0 to 4b9b5dc Compare December 10, 2024 10:54
@tjamet tjamet force-pushed the maiao.I12dc66552733eaa5e6258df00a659d6bf410f9c3 branch from d13fb31 to 10007ac Compare December 10, 2024 11:17
@tjamet tjamet force-pushed the maiao.I14936b3ef0558e5d5b5fd6f251264ddfa7b8ad65 branch 2 times, most recently from 44c8ba4 to 93f6b3a Compare December 10, 2024 11:43
@tjamet tjamet force-pushed the maiao.I12dc66552733eaa5e6258df00a659d6bf410f9c3 branch from 10007ac to 306e626 Compare December 10, 2024 11:43
@tjamet tjamet force-pushed the maiao.I14936b3ef0558e5d5b5fd6f251264ddfa7b8ad65 branch from 93f6b3a to d69a594 Compare December 13, 2024 06:51
@tjamet tjamet mentioned this pull request Dec 13, 2024
@tjamet tjamet changed the title [need #10] refactor ingress backend pod detection [need #15] refactor ingress backend pod detection Dec 13, 2024
@tjamet tjamet mentioned this pull request Dec 13, 2024
@tjamet tjamet changed the base branch from maiao.I12dc66552733eaa5e6258df00a659d6bf410f9c3 to maiao.I9146086e1ed524e21ae073616ccbc73335769e68 December 13, 2024 06:51
Move the detection at the ingress level rather than per rule

Goals
---

- Prepare the case to support multiple ingress controllers through CRDs
- Increase code readability and testeability

Change-Id: I14936b3ef0558e5d5b5fd6f251264ddfa7b8ad65
@tjamet tjamet force-pushed the maiao.I14936b3ef0558e5d5b5fd6f251264ddfa7b8ad65 branch from d69a594 to a4dc767 Compare December 13, 2024 09:15
@tjamet tjamet changed the title [need #15] refactor ingress backend pod detection refactor ingress backend pod detection Dec 13, 2024
@tjamet tjamet changed the base branch from maiao.I9146086e1ed524e21ae073616ccbc73335769e68 to main December 13, 2024 09:15
@tjamet tjamet merged commit 8c217ad into main Dec 13, 2024
2 checks passed
@tjamet tjamet deleted the maiao.I14936b3ef0558e5d5b5fd6f251264ddfa7b8ad65 branch December 13, 2024 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants