Skip to content
This repository was archived by the owner on Feb 22, 2022. It is now read-only.

[stable/prometheus] extraSecretMounts support - #4059

Merged
k8s-ci-robot merged 3 commits into
helm:masterfrom
adidenko:add-secret-volumes
Mar 19, 2018
Merged

k8s-ci-robot merged 3 commits into
helm:masterfrom
adidenko:add-secret-volumes

Conversation

@adidenko

@adidenko adidenko commented Mar 8, 2018 •

Copy link
Copy Markdown
Contributor

In order to monitor services that require authentication (like TLS) we need a way to provide Prometheus server with credentials/secrets in a secure manner. Kubernetes Secrets seem like a suitable solution for this.

For example, monitoring of external Etcd cluster with TLS auth. In such case it would be handy to put all the TLS files into Kubernetes Secret and then mount them into Prometheus Server pod. Current alternative is distributing secrets on all the worker nodes and using hostPath mounts.

@k8s-ci-robot

Copy link
Copy Markdown
Contributor

Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA.

It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.


Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@k8s-ci-robot k8s-ci-robot added cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Mar 8, 2018
Sometimes you need to monitor external services and sometimes
those services have authentication mechanisms, like TLS. For
example, you need to monitor external Etcd cluster. In such case
it would be handy to put all the TLS files into Kubernetes Secret
and then mount them into Prometheus Server pod, instead of
distributing them on all the worker nodes and using hostPath mounts.
@adidenko
adidenko force-pushed the add-secret-volumes branch from 47a79d7 to e977514 Compare March 8, 2018 16:42
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Mar 8, 2018
@mattfarina

Copy link
Copy Markdown
Contributor

/ok-to-test

@k8s-ci-robot k8s-ci-robot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Mar 13, 2018
@unguiculus

Copy link
Copy Markdown
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 16, 2018
@k8s-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adidenko, unguiculus

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 16, 2018
@adidenko

adidenko commented Mar 19, 2018 •

Copy link
Copy Markdown
Contributor Author

As for failed tests, prometheus-server Pod failed to initialize, PV/PVC seems to be in order. Without kubectl describe pod it's hard to understand what is the reason, but my patch should not affect pod initialization since with default values it does not change anything in the deployment chart. Checked again on my local env (rebased on master) - works fine with and without extraSecretMounts

@mattfarina

Copy link
Copy Markdown
Contributor

/retest

@k8s-ci-robot
k8s-ci-robot merged commit 28faaf8 into helm:master Mar 19, 2018
@mattfarina

Copy link
Copy Markdown
Contributor

@adidenko Adding a call to kubectl describe pod would be a good idea when we have a failure. I created #4278 to fetch this.

In the case of your PR, there were some issues the other day with CI that are now fixed. retesting was all that was needed.

ichtar pushed a commit to Bestmile/charts that referenced this pull request May 15, 2018
* [stable/prometheus] extraSecretMounts support

Sometimes you need to monitor external services and sometimes
those services have authentication mechanisms, like TLS. For
example, you need to monitor external Etcd cluster. In such case
it would be handy to put all the TLS files into Kubernetes Secret
and then mount them into Prometheus Server pod, instead of
distributing them on all the worker nodes and using hostPath mounts.

* Incrementing the chart version
voron pushed a commit to dysnix/helm-charts that referenced this pull request Sep 5, 2018
* [stable/prometheus] extraSecretMounts support

Sometimes you need to monitor external services and sometimes
those services have authentication mechanisms, like TLS. For
example, you need to monitor external Etcd cluster. In such case
it would be handy to put all the TLS files into Kubernetes Secret
and then mount them into Prometheus Server pod, instead of
distributing them on all the worker nodes and using hostPath mounts.

* Incrementing the chart version

Signed-off-by: voron <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants