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

Any plans to support Istio / Knative deployments #1029

Closed
JCzz opened this issue May 17, 2019 · 7 comments
Closed

Any plans to support Istio / Knative deployments #1029

JCzz opened this issue May 17, 2019 · 7 comments
Labels
stale Issue is stale and will be closed

Comments

@JCzz
Copy link

JCzz commented May 17, 2019

Telepresence is so cool and it works perfect for normal k8s deployments - do you have any plans on supporting Istio / Knative?

@ark3
Copy link
Contributor

ark3 commented Jun 3, 2019

As far as I know, Telepresence works okay with Istio right now. What would it mean to support Knative? Can you sketch out an example?

@JCzz
Copy link
Author

JCzz commented Jun 14, 2019

Hi

In Knative they use a header for routing:
grpc.WithAuthority("")
This routing is hitting a deployment name.

The issue is the name of the deployment(swap deployment) name and the yaml parameters/settings.

Kind of like --expose but for knative service.

I think it would be awesome, to support this.

And I still have issues trying with datawire/telepresence-k8s:0.100:
#1027

Thanks

@lisamburns
Copy link

lisamburns commented Feb 9, 2021

I ran into issues attempting to use telepresence with knative as well. I tried to telepresence --swap-deployment with a deployment that had been created by knative. First, the new pod that was created was failing with this error message on the queue-proxy sidecar (sidecar is created by knative):

"admin server failed to listen: listen tcp :8022: bind: address already in use","stacktrace":"main.main\n\tknative.dev/serving/cmd/queue/main.go:229\nruntime.main\n\truntime/proc.go:203"}

I looked at port 8022 and there's some hard-coding in both knative and telepresence, neither is configurable, that may be the issue:

runner.launch(
"kubectl port-forward",
runner.kubectl(
"port-forward", remote_info.pod_name, "{}:8022".format(ssh.port)
)
)

https://github.com/knative/serving/blob/d91b5d6cdd290075a0a911ee97a5238ea19fdecb/pkg/networking/constants.go#L29-L31

The second issue that I ran into was that a second healthy pod spun up immediately (with both my workload and the queue-proxy sidecar), but it did not have the datawire/telepresence image swapped in. One hypothesis here is that knative creates this new pod as part of its reconciliation loop after the swap.
Maybe the only way to get telepresence working with knative is to create a new knative service (using the datawire/telepresence image), and then use `telepresence --deployment --method container --docker-run (assuming there wasn't a port conflict).

@thallgren
Copy link
Member

@JCzz are you seeing issues with Istio or Knative? If you do, please elaborate. If not, please close this ticket again.

@dsyer
Copy link

dsyer commented May 19, 2023

It's definitely not usable with Knative. I'm using Telepresence2 so the commands are different from the examples in @lisamburns comment, but the experience is similar. I can't get telepresense intercept to run at all even - it fails to detect the interceptable ports and won't take any hints I provide. The problem is to do with the way Knative generates and reconciles the deployment manifest, as she suggested I'm sure (but I'm not an expert so I can't explain how that works).

Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment, or this will be closed in 7 days.

@github-actions github-actions bot added the stale Issue is stale and will be closed label Aug 16, 2024
Copy link

This issue was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Issue is stale and will be closed
Projects
None yet
Development

No branches or pull requests

5 participants