-
Notifications
You must be signed in to change notification settings - Fork 261
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
No flags to support container port information while creating service #142
Comments
/assign |
This is not part of the knative contract. The knative system supplies the container the enviornment variable PORT, and the container must listen on that port. |
Ah, that's new to me. I thought that it's allowed to specify one single port int the container spec of the service / revision CRD. @sixolet could you please point me to which knative contract do you refer to ? |
According to https://github.com/knative/serving/blob/master/docs/spec/spec.md the port can be specified in the CRD:
So I think a |
The Service spec allows the developer to specify the |
Thanks for the clarification @evankanderson . @sixolet I think this issue is still a valid use case as it should be possible for the user to specify this single port on the command line like in |
Yes Service spec allows to specify port ..Because by default if no port is specified it will take 8080 as containerPort. But if application is running on some other port then we have to provide a option to user to provide a port information when they use CLI(kn). |
... Damn, I guess the container runtime contract has changed since last I read it.
… On May 28, 2019, at 9:29 PM, savitaashture ***@***.***> wrote:
Yes Service spec allows to specify port ..Because by default if no port is specified it will take 8080 as containerPort.
But if application is running on some other port then we have to provide a option to user to provide a port information when they use CLI(kn).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
If we agreed to implement container port than can you reopen the issue... |
I think it may have been misunderstood or mis-read.
Customers may want to manage an existing container under Knative which
wasn't written to depend on the $PORT parameter, so containerPort allows
dictating to the infrastructure which port to deliver traffic on.
On Wed, May 29, 2019 at 12:10 AM Naomi Seyfer <[email protected]>
wrote:
… ... Damn, I guess the container runtime contract has changed since last I
read it.
> On May 28, 2019, at 9:29 PM, savitaashture ***@***.***>
wrote:
>
> Yes Service spec allows to specify port ..Because by default if no port
is specified it will take 8080 as containerPort.
>
> But if application is running on some other port then we have to provide
a option to user to provide a port information when they use CLI(kn).
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub, or mute the thread.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#142?email_source=notifications&email_token=AB4XEN7AXAC7GP4AJMDXH4LPXYT5NA5CNFSM4HP4EVGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWOMOMI#issuecomment-496813873>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB4XENZPNI2KHE6JITB6PB3PXYT5NANCNFSM4HP4EVGA>
.
--
Evan Anderson <[email protected]>
|
+1 this is very important for existing images out there that do not support $PORT or listening on port 8080. One suggestion, can we name it @savitaashture are you working on this? |
@duglin Yes iam working on it :) Completed code changes need to raise PR. |
+1 |
Fixed by #191 |
* Remove SSH access to Knative repos The repos are public, SSH access is not necessary anymore. * Remove new ssh entries
This is kind of enhancement to the existing flags of kn service command
Description:
When someone writes application which listens on port other than 8080(default port in knative-serving) then deploy using cli(kn) then there is no way to specify the port.
Current:
Supported flags are
Expected:
Along with current flags it should support container-port flag so that user can specify port at which application is running.
ex: something like below
The text was updated successfully, but these errors were encountered: