-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Task Steps with Knative Service definition #2476
Comments
This is by design since for most CI/CD use cases (building/testing) the latency of spinning up a new Pod is little compared to to the time it takes to run the build/test.
If you have an existing Knative service, you should be able to hit it directly....not sure how Tekton is involved here. Could you describe your use case in more detail? |
/kind question |
We have Software Defined Network (SDN) automation process, which has sequenced of tasks, i.e mix and match of using Serverless functions and already hosted Knative/fixed scaled services. We are trying to reuse Tektoncd Pipeline runner / Argo workflow for that. For me TekonCD is getting popular, cloud native and it achieves the purpose we need. but always launching new containers for specific scenerio is not affordable with respect to latency in network automations. |
Adding to the point, It will simplify pipeline and task definitions with only input parameters and service endpoint definitions, no need to configure other things such as mounts etc. Because that can be handled in service container spec definitions one time. |
@brindasanth |
I just want to invoke KSCV with defined input parameters on that task and wait for response, so that it can kick on next tasks in pipeline with that task output. Example flow: |
@brindasanth |
There has been a fair amount of abstract discussion about removing Pods / Containers backing Tasks See #215 for the earliest suggestion of this idea (that I can find). @imjasonh has definitely had thoughts around this and made moves to reduce Tekton's reliance on Pods / Kubernetes-isms as well: #1689 On the other hand we've had requests to actually increase the "kubernetes-ness" too: #2327 Essentially I think there are ideas around this but very little actual concrete work. Tasks are backed by Pods and Steps are Containers and that's just how it works right now. Would love to see more concrete design, proposal and implementation around this area though. |
Knative Container Source already uses the sink concept. for one way communication. I think, we shall have sink in task definitions as below. Some time injectable custom task implementation will solve the issue.
would be:
|
@brindasanth |
@vincent-pli Thanks a lot for this implementation, I am looking for similar solution.
|
@brindasanth
|
@vincent-pli |
@brindasanth |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
@tekton-robot: Closing this issue. 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. |
Team,
I see Task -> Steps have containers, This will create new container for each request.
How do I point to existing Knative services, send request and wait for response completion ?
By this I can reuse the available services, avoid latency ( Starting up and Destroying of containers).
This will open up lot of use cases achieved with tektoncd.
The text was updated successfully, but these errors were encountered: