-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat(grafana): remove minimal config option, route to Grafana using existing route and service #122
Conversation
While I'm at it in this PR I will also tackle simplifying the service/ingress/route setup, port forwarding, etc., now that all of the external client traffic is (intended to be) routed through the auth proxy on a single port. This should be a nice cleanup and remove a lot of the post-install steps that we display to users. |
332b147
to
f1631b4
Compare
2fd3e52
to
3678e13
Compare
Hi, I usually do the following installations:
I haven't tried installing with TLS tho :(( |
I haven't testing this yet either - I think it'll look different again once we have a config switch for deploying openshift-oauth-proxy, so I think it makes sense to hold off on TLS changes until that lands and then tackle it all at once. |
Ah make sense to me! There is also another service case, related to service configurations. With service type helm install cryostat-with-svc ./charts/cryostat/ \
--set core.service.type=LoadBalancer \
--set grafana.service.type=LoadBalancer Since its relying cloud providers, likely there are additional annotations required on the Service. For example, with AWS, I have been manually patching the Services after installing the chart:
Do you think it would be good to allow setting those on chart values? Currently, we can only set Service's port and type. Maybe, not this PR scope though. |
I think that's a good feature request, ability to add labels and annotations on created resources like Services. Probably for another follow-up PR. |
…xisting route and service
…eployment behind proxy TODO presigned downloads from S3 provider currently fail signature verification
…r 3.0 deployment behind proxy
…r 3.0 deployment behind proxy
53e461a
to
05352d8
Compare
https://github.com/andrewazores/cryostat-helm/blob/05352d8aeb009c0e654479846b119896843628da/charts/cryostat/templates/tests/test-connection.yaml#L20-L22 |
https://github.com/andrewazores/cryostat-helm/blob/05352d8aeb009c0e654479846b119896843628da/charts/cryostat/README.md?plain=1#L102 should |
|
I fixed up the tests, though I found that the test expects the Cryostat server's |
I think the test could be relaxed for pre-release builds. Maybe if the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we might be missing some configuration for LoadBalancer service. Viewing in Grafana brought me to localhost:3000
.
…ithout -dev or -snapshot on either
I'll take a look, thanks. |
Should be fixed now in the latest commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need the same fix for the NodePort type too. Getting localhost:3000 for viewing in Grafana.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Based on #118
Depends on #118
Fixes #114
To test:
Install chart on OpenShift with
helm install cryostat --set core.route.enabled=true ./charts/cryostat
, then follow the notes that are printed to set the additional environment variables dependent upon the route host. Wait for the deployment to become ready, then visit the route. Cryostat should be running with no error notifications about Grafana or archives. Create alocalhost:0
custom target, then start a flight recording on Cryostat. You should be able to archive the active recording, generate reports on the active or archived recording, and view the active recording in Grafana.Viewing archived recordings in Grafana is not yet implemented by the Cryostat 3 server but the configuration here should allow that seamlessly once we have that reimplemented.Test along with cryostatio/cryostat#315 / cryostatio/cryostat#324 to get more of the UI features working.
We might want to keep theminimal
deployment option (no jfr-datasource and no Grafana dashboard), but I'm leaning toward removing it. Originally this was put in place so that the deployment footprint was only the Cryostat container itself, but nowadays the smallest footprint is Cryostat + database + object storage + auth proxy, and the Grafana dashboard layout has been updated quite a bit to include several more powerful/useful data visualizations, so IMO it's worth making it a standard feature.