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

[Story] KubernetesApi Discovery Mechanism #238

Closed
Tracked by #2
andrewazores opened this issue Jan 11, 2024 · 12 comments · Fixed by #325
Closed
Tracked by #2

[Story] KubernetesApi Discovery Mechanism #238

andrewazores opened this issue Jan 11, 2024 · 12 comments · Fixed by #325
Assignees
Labels
feat New feature or request

Comments

@andrewazores
Copy link
Member

Describe the feature

3.0 should bring forward the Kubernetes API discovery system from 2.x, where Cryostat gains a dependency on the fabric8 client and uses a Watcher or Informer on Endpoints objects to discover suitable target applications.

Anything other information?

No response

@andrewazores andrewazores added the feat New feature or request label Jan 11, 2024
@andrewazores andrewazores changed the title [Request] KubernetesApi Discovery Mechanism [Story] KubernetesApi Discovery Mechanism Jan 11, 2024
@tthvo
Copy link
Member

tthvo commented Jan 11, 2024

Hey @andrewazores, I wanna help out this issue if anyone is not taking on this yet.

@andrewazores
Copy link
Member Author

You will probably find cryostatio/cryostat-helm#111 helpful for testing out cryostat3 and your progress in a k8s setup. There is also the k8s smoketest in this repo, but I haven't tried it in a long time and a lot of things have otherwise changed about the smoketest since, so I'm not confident that that still works.

@tthvo
Copy link
Member

tthvo commented Jan 11, 2024

Ah thanks! I will look into! If anything, I could help update the smoketest long the way.

@andrewazores
Copy link
Member Author

If you're motivated to do so then sure, but I think having -helm updated to deploy 3.0 is a good replacement for the k8s smoketest. I initially just put that k8s smoketest together because it was relatively simple and easy, but now that the smoketest.bash has gotten more complicated and uses compose file overrides and variable interpolations etc. it may not be so straightforward.

@tthvo
Copy link
Member

tthvo commented Jan 11, 2024

Right, my knowledge of the smoketest is pretty outdated now so it would be pretty difficult indeed. I will utilize your changes on helm chart mostly. Tho, I guess if later on the operator/helm is fully updated to deploy 3.0 then we can use it for manual deploy and remove this k8s smoketest? If so, I might just not spend time on it.

@andrewazores
Copy link
Member Author

Yea, I think longer term the k8s smoketest will go away, and we will just use -helm and -operator like before when we need to deploy into k8s/OpenShift.

@andrewazores
Copy link
Member Author

There will be a bit of a behaviour change, planned for 2.4.1, that needs to be forward-ported to the new implementation as well:

https://github.com/cryostatio/cryostat/issues/1861

@tthvo tthvo moved this to In Progress in 3.0.0 release Feb 5, 2024
@andrewazores
Copy link
Member Author

I think for 3.0 we can/should think about changing this default behaviour. Leaving the configuration for a list of port names and list of port numbers to match on makes sense, but perhaps we should default these both to empty lists and let it be up to the user to configure these. It is already the case in 3.0 that all the built-in discovery mechanisms are turned off by default and require the user to opt-in to each relevant one for their deployment scenario, so this change would also make sense from that angle.

@tthvo
Copy link
Member

tthvo commented Feb 12, 2024

Sounds good to me! I will go in that direction to default to empty :))

@andrewazores
Copy link
Member Author

@tthvo how's this going? Any progress to share yet?

@tthvo
Copy link
Member

tthvo commented Mar 11, 2024

Oh sorry not much functional yet...still reading and porting parts from v2. I will wrap up the operator's scorecard asap and continue on this issue :))

@tthvo
Copy link
Member

tthvo commented Mar 11, 2024

Opened #325 for progress tracking btw :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants