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

Document labels used by Okteto pods #240

Open
vitobotta opened this issue Oct 20, 2022 · 6 comments
Open

Document labels used by Okteto pods #240

vitobotta opened this issue Oct 20, 2022 · 6 comments

Comments

@vitobotta
Copy link

Is your feature request related to a problem? Please describe.
Documentation request

Describe the solution you'd like
In my case, I use a wrapper around some K8s tools including Okteto to abstract some complexity, and am also using KEDA autoscaling to scale my app. When I start Okteto, the autoscaler interferes because it automatically starts its own non-Okteto pods, so traffic is then split between Okteto pods and the autoscaler pods, causing problems and confusion. For this reason, I changed my CLI so that before starting Okteto it patches the services so that they send traffic only to the Okteto pods, ignoring the autoscaled pods. So I can work with Okteto just fine.

This wasn't documented, so I had to figure out that Okteto labels the pod for the main service with the label "interactive.dev.okteto.com" and the additional services (as specified in the manifest) with "detached.dev.okteto.com".

By patching my services to use these labels during an Okteto session, I no longer have problems due to the autoscaling.

Describe alternatives you've considered
I couldn't think of an alternative

@jLopezbarb
Copy link
Contributor

@RinkiyaKeDad Should we move this issue to the docs repo? Where is the best place to document those labels?

@RinkiyaKeDad
Copy link
Member

Yes. Let's first create an issue on github.com/okteto/docs and there we can discuss where to document this!

@omnomagonz
Copy link
Contributor

I've opened an internal backlog item here for now to help me track and prioritize this request.

@RinkiyaKeDad let me know when you open that issue so I can cross-link 🙏

cc @jmacelroy it looks like this will move to the docs repo but likely still needs triage for priority, which we could do in Notion I think. Thoughts?

@jLopezbarb jLopezbarb transferred this issue from okteto/okteto Oct 28, 2022
@jLopezbarb
Copy link
Contributor

@RinkiyaKeDad I transferred the issue from https://github.com/okteto/okteto as you requested so we can discuss how to achieve this 😄

@jmacelroy jmacelroy removed the triage label Nov 3, 2022
@jmacelroy
Copy link
Contributor

@omnomagonz I think we can cover this in docs most quickly and just with this issue. @RinkiyaKeDad Did you have some ideas on where and how to best document this.

@RinkiyaKeDad
Copy link
Member

RinkiyaKeDad commented Nov 9, 2022

I would suggest first documenting this on the community website and then moving it to the docs once we figure out what the appropriate section for this could be. @vitobotta do you mind framing this as a question and posting it on community.okteto.com? 😄

more context: https://okteto.slack.com/archives/C02SX9665RP/p1667210769186039

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

No branches or pull requests

5 participants