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

Common Ingress with Multiple services #1688

Open
rupeshpoojary opened this issue Jul 25, 2024 · 1 comment
Open

Common Ingress with Multiple services #1688

rupeshpoojary opened this issue Jul 25, 2024 · 1 comment

Comments

@rupeshpoojary
Copy link

HI Team,
Just giving a overview of my current environment structure
We have a nginx controller at node port, and then we have multiple ingress created and there are many different services which are behind same ingress but are routed based on URI path regex.
for example here is the sample ingress

Kind: Ingress
.
.
.
spec:
ingressClassName: f01f9f
rules:
- host: api-flaggerfpv1.{{domain}}
http:
paths:
- backend:
service:
name: f01f9f-ingress-nginx-defaultbackend
port:
number: 80
path: /healthz
pathType: ImplementationSpecific
- backend:
service:
name: f01f9f-qsqsq-admin-svc
port:
number: 80
path: /service/___/administrator/order-manage(/|$)(.)
pathType: ImplementationSpecific
- backend:
service:
name: f01f9f-qdqd-app-svc
port:
number: 80
path: /service/application/order-manage(/|$)(.
)
pathType: ImplementationSpecific
- backend:
service:
name: f01f9f-sqidh-internal-svc
port:
number: 80
path: /sqsqs-internal(/|$)(.*)
pathType: ImplementationSpecific
.
.
.

We are trying leverage Flagger with Istio service mesh for all our deployments with A/B testing.
when i deploy canary for each services.Deployment , i can see an issue that the canary ingress created by flagger raised an issue saying
{"level":"info","ts":"2024-07-25T06:18:50.083Z","caller":"controller/events.go:45","msg":"ingress .......... update error: Operation cannot be fulfilled on ingresses.networking.k8s.io "f01f9f-domains-api-path-ingress-canary": the object has been modified; please apply your changes to the latest version and try again","canary...}

When i troubleshooted i found the issue
As there were multiple canary resource Created for different services but they had same ingress, one of the canary resources takes the ownership and hence the above error occurs

I cannot segregate the Ingress as it is the nature of our application , what could be the possible solution for this ??

@rupeshpoojary
Copy link
Author

HI Team,
Any Update on this ??

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