-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Custom Ingress Path for Helm Chart #1834
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
Conversation
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.
I do not see how the sub path is getting configured in the Grid itself. Am I missing something?
I was able to configure that part using the existing helm chart already by adding these lines here: hub:
extraEnvironmentVariables:
- name: SE_OPTS
value: '--sub-path /<custom-sub-path>/'
which worked fine, but then could not update the ingress path itself since it was hard coded |
@JordanZimmitti would if be better if we add a new environment variable just to set the sub-path? If so, I can have a look at it unless you want to do it. |
@diemol it did take me a little while to figure out how to set the subpath for the hub so having an env called |
@diemol I updated the selenium hub start script to take a new environment variable called |
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.
Looks good, we just need to add it to a couple of places more. I'd be nice if you have time to put a couple of lines describing it on the main README. Thanks!
@diemol Thanks for the suggestions! I updated the environment variable name to |
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.
Looks great!
Not sure if I am missing something, but shouldn't the SE_SUB_PATH
variable be used somewhere in the chart?
Since the docker file takes hub:
extraEnvironmentVariables:
- name: SE_SUB_PATH
value: "/<custom-sub-path>/" But I could break it out of |
@JordanZimmitti sorry for the late reply, we had a long weekend here.
I think ☝️ is the preferred solution so all places where the env var can be used get the option to be configured. Thanks! |
@diemol Sounds good ill implement the changes in the next day or so! |
@diemol |
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!
I just noted that the sub-path environment variable is being used in a few places we do not need it.
@diemol I removed the sub_path from components that don't need it based on your recommendation! |
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, @JordanZimmitti!
Description
Now that Selenium supports custom sub-paths for the UI, in order to take advantage of it in Kubernetes the helm chart needs the ingress
path
to be overwritable. I added apath
key under the ingress section of thevalues.yaml
file and made it backward compatible in the template so if nopath
key exists then it will use the default "/" path just like before.Motivation and Context
Deploy selenium with a custom domain sub-path using the helm chart
Types of changes
Checklist