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

Add helm-chart (#14) #79

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

dromaniuk
Copy link

Hi. I've added simple helm chart. It makes available to deploy it to Kubernetes with Prometheus Operator compatibility (Config is being declared as Probes).

I've checked it on Kubernetes 1.19

Comment on lines +9 to +12
# fsGroup: 1001
# runAsGroup: 1001
# runAsNonRoot: true
# runAsUser: 1001
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these (and the resources below) commented out? As an example?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As example.
I didn't dive deep into securityContext, for now.
Perhaps you'll advise better default value for the parameter?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# fsGroup: 1001
# runAsGroup: 1001
# runAsNonRoot: true
# runAsUser: 1001
fsGroup: 100
runAsGroup: 100
runAsNonRoot: true
runAsUser: 100

The image runs as user 100 by default, so let's go with that.

Copy link
Owner

@ribbybibby ribbybibby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! It looks good overall, I've just left a couple of comments.

One thing I think that should be added is a way to add configMap and secret volumes + volumeMounts so that users can provide the config file and mount certificates in the exporter container.

@dromaniuk
Copy link
Author

One thing I think that should be added is a way to add configMap and secret volumes + volumeMounts so that users can provide the config file and mount certificates in the exporter container.

I've added configMap generation in 546a1c4
The rest whould be better to implement later as chart improvements.
They take quite more time, than I expected. So I propose to apply this pull-request for the beginning, and "polish" the chart next time.

Add helm-chart notes
@dromaniuk
Copy link
Author

Any updates? Seems the pull-request has been forgotten

@ribbybibby
Copy link
Owner

Sorry @dromaniuk, I haven't had much time to dedicate to this project recently.

Could you please add the ability to mount secrets as requested? This is a very common requirement for people using their own PKI or client authentication and I would prefer that the chart had that functionality. My concern is that if it's left til 'next time', that 'next time' isn't going to come around.

@etiennejournet
Copy link

Hi @dromaniuk, thanks for your work, I can help you on this if you don't have time. Have you considered adding the proper rbac template to allow for monitoring secrets inside of the same cluster the container is deployed in ?

@dromaniuk
Copy link
Author

Hi @dromaniuk, thanks for your work, I can help you on this if you don't have time. Have you considered adding the proper rbac template to allow for monitoring secrets inside of the same cluster the container is deployed in ?

@etiennejournet I will be very grateful for your help.

@etiennejournet
Copy link

etiennejournet commented Mar 8, 2022

Hey, I have no time for now but keeping this in mind. I'll come back to you asap

@skoef skoef mentioned this pull request Oct 19, 2022
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

Successfully merging this pull request may close these issues.

3 participants