-
Notifications
You must be signed in to change notification settings - Fork 31
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
Fix ingress annotation warnings #1196
Conversation
Remove annotation support to older kube versions
@psschwei @akihikokuroda Can you help with some guidance of how I can add tests to this fix? |
@karlaspuldaro It is difficult to add the test verifying the changes. We don't have the kubernetes level end to end testing now. We have the notebook tests that verify most of the middleware functionalities but it's based on the docker compose that doesn't use the kubernetes ingress. I believe that this PR can be accepted without adding the test. @psschwei WDYT? |
Yeah, I think we can accept this without tests in the CI, just run it locally to verify that it does what we expect it to. |
@psschwei Local testing update: I'm going through some build issues related to kind and docker. I'll come back with another update once I confirm the warning is gone. |
Update: still having issues completing my build and deployment. So far, I was able to build gateway and ray node, but couldn't load the ray image into my kind cluster. |
Let us know if we can help you with something @karlaspuldaro 👍 |
@Tansito @akihikokuroda I think I need help reproducing the warnings locally from the main branch, then checking out to this PRs branch and comparing logs to see if they're gone. |
You can modify the ingress section of ingress:
annotations:
# For IBM Cloud the valid ingress class values are: public-iks-k8s-nginx and private-iks-k8s-nginx
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/proxy-buffers-number: "4"
nginx.ingress.kubernetes.io/proxy-buffer-size: "512k"
nginx.ingress.kubernetes.io/proxy-body-size: 50m
# tls: []
tls:
- hosts:
- "quantum-serverless-url.cloud"
secretName: "tls-secret-name"
# hosts: []
hosts:
- host: "quantum-serverless-url.cloud"
paths:
- path: /
pathType: Prefix
serviceName: "gateway"
servicePort: 8000
|
Thank you @psschwei for helping test this PR locally and confirm the changes fix the issue.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much @karlaspuldaro ! 😄
Summary
Add tests to cover the changesTest changes locallyDetails and comments
Since Kubernetes only supports their few latest minor versions, this PR removes support to the deprecated way of setting annotations.