You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support users to set more fields in suggetion deployment #1737
Thank you for creating this @tingweiwu!
We can allow to specify the Deployment spec or spec.template.spec in Config Suggestion Settings, but then setting just Suggestion image will be more complicated for our users since they have to follow the correct API structure.
For example:
It seems the Suggestion settings with configmap don't support imagePullSecrets and other similar spec settings in Deployment
It will probably be more flexible for user to set deployment attributes in algorithmSpec template in different scenarios.
two simple examples as the following
case 1: set imagePullSecrets and resource limits
Basically, Katib config was designed to simplify Experiment specification and give additional settings to more advanced users who are Kubernetes experts.
Therefore, I am not sure that algorithmSpec should live under Experiment, but we can extend Katib config settings as I mentioned above: #1737 (comment).
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
I think, this is a valid ask for many deployments. We can provide this as an option. If AlgorithmSpec is provided in Experiment, it is picked up. Else, defaults will be used(like the current)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi @andreyvelich, I'd like to work on the remaining part of this issue.
Since #2000, SuggestionConfig inlines corev1.Container, so container-level fields (command, args, env, resources, ...) can already be set in the Katib config. What's still missing are the pod-level fields: DesiredDeployment() in pkg/controller.v1beta1/suggestion/composer/composer.go only sets ServiceAccountName and the resume volume on the pod spec, so things like imagePullSecrets (the original ask here) can't be configured.
Proposal, keeping the simple image: setup unchanged as you suggested above:
Add optional pod-level fields to SuggestionConfig in pkg/apis/config/v1beta1/types.go:
Opened #2744 with the approach above (all four fields, with a unit test). Happy to trim it down to just imagePullSecrets if you'd prefer a smaller change.
Activity
gaocegege commentedon Nov 19, 2021
I think it is a useful feature. WDYT @kubeflow/wg-automl-leads
andreyvelich commentedon Nov 19, 2021
Thank you for creating this @tingweiwu!
We can allow to specify the Deployment
specorspec.template.specin Config Suggestion Settings, but then setting just Suggestion image will be more complicated for our users since they have to follow the correct API structure.For example:
Does it look good to us @gaocegege @johnugeorge @tingweiwu ?
tingweiwu commentedon Nov 27, 2021
It seems the Suggestion settings with configmap don't support
imagePullSecretsand other similar spec settings in DeploymentIt will probably be more flexible for user to set deployment attributes in algorithmSpec template in different scenarios.
two simple examples as the following
case 1: set imagePullSecrets and resource limits
case 2: set start commond and persistent volume, as the new suggetion service may not build in image.
gaocegege commentedon Nov 27, 2021
I think we should consider if we can support SuggestionSpec as @tingweiwu said. WDYT @andreyvelich
andreyvelich commentedon Nov 29, 2021
Basically, Katib config was designed to simplify Experiment specification and give additional settings to more advanced users who are Kubernetes experts.
Therefore, I am not sure that
algorithmSpecshould live under Experiment, but we can extend Katib config settings as I mentioned above: #1737 (comment).What do you think @johnugeorge ?
andreyvelich commentedon Feb 11, 2022
/priority p2
/help
google-oss-prow commentedon Feb 11, 2022
@andreyvelich:
This request has been marked as needing help from a contributor.
Please ensure the request meets the requirements listed here.
If this request no longer meets these requirements, the label can be removed
by commenting with the
/remove-helpcommand.Details
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
johnugeorge commentedon Feb 15, 2022
I think, this is a valid ask for many deployments. We can provide this as an option. If AlgorithmSpec is provided in Experiment, it is picked up. Else, defaults will be used(like the current)
ramdootp commentedon Apr 21, 2022
@andreyvelich @johnugeorge would need this feature for our deployments. which katib release will have this feature implemented?
andreyvelich commentedon Jan 23, 2024
This hasn't been implemented fully yet.
github-actions commentedon Apr 22, 2024
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
andreyvelich commentedon Apr 22, 2024
/lifecycle frozen
dipesh-svg commentedon Oct 27, 2026
Hi @andreyvelich, I'd like to work on the remaining part of this issue.
Since #2000,
SuggestionConfiginlinescorev1.Container, so container-level fields (command,args,env,resources, ...) can already be set in the Katib config. What's still missing are the pod-level fields:DesiredDeployment()inpkg/controller.v1beta1/suggestion/composer/composer.goonly setsServiceAccountNameand the resume volume on the pod spec, so things likeimagePullSecrets(the original ask here) can't be configured.Proposal, keeping the simple
image:setup unchanged as you suggested above:SuggestionConfiginpkg/apis/config/v1beta1/types.go:d.Spec.Template.SpecinDesiredDeployment()when they're set. Existing configs don't change.composer_test.goand update the generated deepcopy.Example config:
Does this approach look good to you? I'm also happy to keep the first PR to just
imagePullSecretsif you'd prefer something smaller.dipesh-svg commentedon Oct 31, 2026
Opened #2744 with the approach above (all four fields, with a unit test). Happy to trim it down to just
imagePullSecretsif you'd prefer a smaller change.