-
Notifications
You must be signed in to change notification settings - Fork 385
Add service resource for the controller manager #2431
Add service resource for the controller manager #2431
Conversation
Signed-off-by: Sébastien Prud'homme <[email protected]>
Hi @sebastien-prudhomme. Thanks for your PR. I'm waiting for a kubernetes-incubator or kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with I understand the commands that are listed here. 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. |
Hey @sebastien-prudhomme, thanks for the PR. I've got a couple questions/thoughts. Instead of creating a Service for the Controller, have you tried enabling enablePrometheusScrape in values.yaml? https://github.com/kubernetes-incubator/service-catalog/blob/58b88f4d33cb708e4b22c39ccbe498b00738488e/charts/catalog/values.yaml#L161-L162 This will cause the the annoation If we create the Service to enable Prometheus scraping, is there additional configuration required in the Prom Operator to cause it to scrape services? Is the NodePort required for Prometheus? This has side effects such as exposing the Catalog Controller to external access. If we do merge this PR I'd like to get some documentation around it including any assumptions with regards to the Operator configuration. Perhaps update https://github.com/kubernetes-incubator/service-catalog/tree/master/contrib/examples/prometheus ? |
Hi @jboyd01 Sure you can have automatic scrape directly on pods by using the right annotations but this is not compatible with the prometheus operator and have some limitations, that's why the prometheus operator dev team introduced the ServiceMonitor resource. You need the Service resource AND a ServiceMonitor resource that have a selector for the service. The service just need an IP, so ClusterIP service type is enough, no need to expose the service in the external world. My fault as i just copy paste what was done for the other service. Will correct it. The advantage of the prometheus operator is that you can also declare alert rules in your YAML kubernetes files. |
Signed-off-by: Sébastien Prud'homme <[email protected]>
/ok-to-test I'm not certain we need this on by default. |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jboyd01 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
) * Add service resource for the controller manager Signed-off-by: Sébastien Prud'homme <[email protected]> * Use ClusterIP for controller manager Service type Signed-off-by: Sébastien Prud'homme <[email protected]>
This PR is a
What this PR does / why we need it:
This PR enables to use Prometheus Operator ServiceMonitor to scrap metrics on the controller manager.
This PR adds a service resource for the controller manager in the Helm chart.
Merge Checklist:
breaking the chart release and existing clients who provide a
flag that will get an error when they try to update