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
Add CLI support to specify multiple containers #997
@rhuss@savitaashture one way to do this safely is via a configuration file directly. It should be essentially a copy of what the user would use in a ksvc and that should be validated by the existing Serving logic for consistency. For example: kn --multi-container-config-file /path/to/file. Otherwise I think it could be confusing to translate that to cli args.
Let me know if there is some way to help here I certain try it.
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.
After thinking a bit around the issue, in order to stay scalable (wrt the number of options and length of the command-line) and still being able to provide a decent UX, I think we can't avoid to make multi-container management a multi-step interaction with an intermediate file.
Some ideas about the UX:
Using a new container command the builds up a list of container specs in a file (option names are just illustrative for now):
Activity
rhuss commentedon Sep 1, 2020
Good point, we definitely should add this to
kn. The tricky part will be how to add this to the UX--imageparameters (but what would be then the main container ?)Or maybe just support a simplified usage of adding a second container, and then delegate to full yaml usage when there are more complex needs ?
@savitaashture are all container related fields possible for the second container, too ?
savitaashture commentedon Sep 1, 2020
@rhuss Yes i agree with you this is bit tricky to support as part of UX
The main container will be the one where
containerPortspecified by the userYes, there are few options which are not supported in sidecar but supported as part of main container (specifically Probes, ContainerPort )
For more info here is the design doc https://docs.google.com/document/d/1XjIRnOGaq9UGllkZgYXQHuTQmhbECNAOk6TT6RNfJMw/edit?ts=5e25d093#heading=h.n8a530nnrb
/cc @markusthoemmes
skonto commentedon Nov 24, 2020
@rhuss @savitaashture one way to do this safely is via a configuration file directly. It should be essentially a copy of what the user would use in a ksvc and that should be validated by the existing Serving logic for consistency. For example:
kn --multi-container-config-file /path/to/file. Otherwise I think it could be confusing to translate that to cli args.Let me know if there is some way to help here I certain try it.
rhuss commentedon Nov 24, 2020
An example could be to used the
--fileoption that we already for something likedprotaso commentedon Feb 9, 2021
/label good-first-issue
knative-prow-robot commentedon Feb 9, 2021
@dprotaso: The label(s)
/label good-first-issuecannot be applied. These labels are supported:proposal/0.11, proposal/0.12, proposal/0.13, proposal/0.14, proposal/0.15, proposal/0.16, proposal/0.17, proposal/0.18, proposal/0.19, channel/kafka, channel/natss, source/awssqs, source/camel, source/ceph, source/couchdb, source/github, source/kafka, source/prometheusDetails
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.
dprotaso commentedon Feb 9, 2021
/label 'good first issue'
rhuss commentedon Feb 9, 2021
After thinking a bit around the issue, in order to stay scalable (wrt the number of options and length of the command-line) and still being able to provide a decent UX, I think we can't avoid to make multi-container management a multi-step interaction with an intermediate file.
Some ideas about the UX:
containercommand the builds up a list of container specs in a file (option names are just illustrative for now):rhuss commentedon Feb 9, 2021
@dprotaso we are going to discuss these two alternatives above in the client WG call.
btw, I don't think it's a 'good first issue', it touches quite a bit ;-)
dprotaso commentedon Mar 30, 2021
@rhuss mentioned this has an owner - if things have changed feel free to un-assign
/assign @dsimansk
rhuss commentedon Apr 15, 2021
It's still close to the top of the client bucket list, we just don't have a huge velocity right now .. :(
evankanderson commentedon Jun 15, 2021
(This still needs a design before we can start implementation)