-
Notifications
You must be signed in to change notification settings - Fork 111
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
Helm chart #642
Helm chart #642
Conversation
first draft
Signed-off-by: Syed Nihal <[email protected]>
Signed-off-by: Syed Nihal <[email protected]>
Signed-off-by: Syed Nihal <[email protected]>
Signed-off-by: Syed Nihal <[email protected]>
adding rbac with changes for labels and annotations Signed-off-by: Syed Nihal <[email protected]> adding rbac with changes for labels and annotations Signed-off-by: Syed Nihal <[email protected]> adding rbac with changes for labels and annotations Signed-off-by: Syed Nihal <[email protected]>
Signed-off-by: Syed Nihal <[email protected]>
Co-authored-by: MattFrick <[email protected]>
Helm 102 - Configmap and env value for external secret
add readme
Mostly LGTM. @arramos84 do you think is worth merging this PR as a starting point for the consolidation with your chart, or it's better to wait? |
@mariomac, this chart has errors out of the box. At a minimum, it should work with the default values. One error (among others) when deploying is a nil pointer since no default |
@arramos84 you are right, we forgot to remove all of ingress related code. Changed now! |
deployments/helm/values.yaml
Outdated
# open_port: 8443 | ||
# routes: | ||
# unmatched: heuristic | ||
# log_level: info | ||
# otel_traces_export: | ||
# endpoint: http://grafana-agent:4318 | ||
# ## or alternatively use | ||
# # grafana: | ||
# # otlp: | ||
# # cloud_zone: prod-eu-west-0 | ||
# # cloud_instance_id: 123456 | ||
# # cloud_api_key: | ||
# discovery: | ||
# services: | ||
# - k8s_namespace: default | ||
# attributes: | ||
# kubernetes: | ||
# enable: true | ||
# internal metrics reporting. Refer: https://grafana.com/docs/beyla/latest/configure/options/#internal-metrics-reporter | ||
# If set, user can expose the metrics endpoint via k8s service by configuring .Values.service section | ||
#prometheus_export: | ||
#port: 9090 | ||
#path: /metrics |
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.
At a minimum, it should work with the default values.
That's an interesting point. Beyla requires at least two input values: the service to instrument and the way to export the data (e.g. the OpenTelemetry endpoint or the Prometheus exporter pod).
So I guess that, to let Beyla work with some default inputs, we should provide something like:
# look for ALL the services in the host
discovery:
services:
- k8s_namespace: .
# export metrics as prometheus metrics by default
prometheus_export:
port: 9090
# enable kubernetes
attributes:
kubernetes:
enable: true
Could we set the above YAML as the default configMapData
?
Signed-off-by: Syed Nihal <[email protected]>
@mariomac , @petewall , I have addressed the commented in the latest commit. Changes include:
|
@@ -0,0 +1,19 @@ | |||
{{- if and (not .Values.config.create) (eq .Values.config.name "") }} | |||
{{- fail "if .Values.config.name is not set, then .Values.config.create should be set to true to use default configuration" }} |
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.
🤩
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.
LGTM! This looks very good now. I think we can merge unless there are any objections and we should be able to build tests with this.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #642 +/- ##
===========================================
- Coverage 76.04% 37.94% -38.10%
===========================================
Files 102 102
Lines 8165 8172 +7
===========================================
- Hits 6209 3101 -3108
- Misses 1614 4890 +3276
+ Partials 342 181 -161
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@mariomac yes, just signed it |
Ok! Then let's merge the PR. If someone sees any issue we can address it in another PR. @khushijain21 @wasim-nihal thank you a lot for your contribution and your patience! |
Helm Chart for Beyla