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

Conditions to Ignore specific ReadinessGate control #3753

Open
marlonramos51 opened this issue Jun 21, 2024 · 0 comments
Open

Conditions to Ignore specific ReadinessGate control #3753

marlonramos51 opened this issue Jun 21, 2024 · 0 comments

Comments

@marlonramos51
Copy link

marlonramos51 commented Jun 21, 2024

Is your feature request related to a problem?
Yes, in my company we developed a blue/green deploy related to infrastructure major changes due to internal process. We have 4 different repositories to deploy: infra eks cluster-blue, infra eks cluster-green, network stack (Elbs, targets, route, etc) and application

To make it simple, let´s say we have 1 single NLB and 2 target groups, TG-BLUE /TG-GREEN and the blue one is the active cluster and its target is attached to NLB.
When I want to activate the other cluster, I switch from TG-BLUE to TG-GREEN in NLB. So, ever one Target is attached do NLB and the other one remain with no NLB attached.

If the readinessgate is enabled and I try deploy the application to that cluster whose target group is not yet attached to the NLB , the readiness workflow never ends due to the message "Target group is not configured to receive traffic"

Describe the solution you'd like
I´d like to have a way to write some conditions when enable elbv2.k8s.aws/pod-readiness-gate-inject to allow the albcontroller ignore specific status, for instance:
apiVersion: v1
kind: Namespace
metadata:
name: default
labels:
elbv2.k8s.aws/pod-readiness-gate-inject: enable
conditions:
status not in "No traffic"

Describe alternatives you've considered
None,
-leave a fake NLB just to have both targets ever attached is not an option
-I don´t want to use instance as target backend

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

No branches or pull requests

1 participant