Skip to content
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

Support for knative services #3628

Open
dsyer opened this issue May 18, 2023 · 4 comments
Open

Support for knative services #3628

dsyer opened this issue May 18, 2023 · 4 comments

Comments

@dsyer
Copy link

dsyer commented May 18, 2023

When an application is deployed by Knative, the deployment (as in deployments.apps) is auto-generated. You can easily figure out its name and put it in okteto.yaml as the name of the app, and Okteto will happily create a new deployment and sync your files and all the lovely stuff it does. But it competes with the Knative controller to update the deployment. Knative will notice that Okteto has deleted the deployment and replace it, so you end up with 2 deployments, and only one of them is routed to by the Knative service, which is what the rest of your app depends on using.

It's possible that all Okteto would need to do would be to replace the Knative service instead of the deployment, which would probably end up being a very similar operation.

@pchico83
Copy link
Contributor

Hi @dsyer , this is in fact a very interesting use case!
How are you using knative with okteto? Looking forward to knowing more about your use case.
I haven't used knative before, but I guess a knative service is a similar controller to a statefulset, for example. If that's the case, we have an interface for deployments/statefulsets that could be used to support knative.

@dsyer
Copy link
Author

dsyer commented May 19, 2023

How am I using it? Well not using really, just attempting to use it - via VSCode as it happens, but probably it would be the same for CLI. It sort of works if you point okteto at the generated deployment (as I described), but not really. It would be nice if that interface was implemented for knative.

@github-actions
Copy link
Contributor

This issue is stale because it has been open for 60 days with no activity. Comment on this issue or it will be closed in 7 days

@github-actions github-actions bot added the stale label Jul 19, 2023
@dsyer
Copy link
Author

dsyer commented Jul 19, 2023

Definitely not stale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants