-
Notifications
You must be signed in to change notification settings - Fork 16.8k
[stable/prometheus-blackbox-exporter] add "allowIcmp" setting #20409
[stable/prometheus-blackbox-exporter] add "allowIcmp" setting #20409
Conversation
Signed-off-by: Alice Sawatzky <alice.sawatzky@farmersedge.ca>
Hi @alice-sawatzky. Thanks for your PR. I'm waiting for a helm member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the 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. |
Signed-off-by: Alice Sawatzky <alice.sawatzky@farmersedge.ca>
I just managed to run some ICMP probes without this capability. Not sure if this is unique to my cluster config or not. https://github.com/prometheus/blackbox_exporter#permissions says this is needed so, probably still worth adding? At some point my deployment of blackbox is gonna be migrated to a newer kube cluster, and i suspect this will be needed then. |
/ok-to-test |
/assign |
Signed-off-by: Alice Sawatzky <alice.sawatzky@farmersedge.ca>
Signed-off-by: Alice Sawatzky <alice.sawatzky@farmersedge.ca>
…of allowIcmp Signed-off-by: Alice Sawatzky <alice.sawatzky@farmersedge.ca>
I had to make the container run as root for ICMP to work. I've updated the README to mention this |
I am not sure if it is indeed needed on all clusters, but if documentation states it, it might be better to add it so that it does not break when upgrading cluster or prometheus-blackbox-exporter. Could you add a ci/icmp-values.yaml testing this configuration? |
Signed-off-by: Alice Sawatzky <alice.sawatzky@farmersedge.ca>
added the test! I don't know why ICMP initially worked for me without this patch, but shortly after it spontaneously stopped working and needed these changes to work. so, i agree that this seems like a good idea to have |
Thanks! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alice-sawatzky, desaintmartin 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 |
…tainer * upstream/master: (309 commits) [stable/moodle] Set MOODLE_SKIP_INSTALL environment variable via values.yaml config. (helm#20523) [stable/prometheus-redis-exporter] Update image for exporter (helm#19317) update alantis version (helm#20507) [stable/spring-cloud-data-flow] Update to new SCDF version 2.4.0 (helm#20517) [stable/prometheus-blackbox-exporter] add "allowIcmp" setting (helm#20409) Allow DNS egress to resolve hostnames (helm#20437) [stable/rabbitmq] Add PrometheusRule. (helm#20478) [stable/drupal] Release 6.2.4 updating components versions (helm#20491) [stable/metabase] interpolate liveness and readiness probes (helm#20475) [stable/grafana] Fix a typo in the Grafana chart notes (helm#20490) [stable/gocd] Quote ingress host (helm#20477) [stable/metabase] allow setting jetty options (helm#20456) [stable/pgadmin] upgrade to 4.17 and more (helm#20211) [stable/prometheus-operator] add apiserverConfig (helm#20453) [stable/graylog] Fix helm#20306, add `helm2Compatibility` flag to `values.yaml` that preserves specific labels installed by helm2 for backward compatibility. (helm#20464) Add annotation support to pushgateway service (helm#20351) Upgrade nfs-provisioner to v2.3.0 (helm#20468) [stable/sysdig] Upgrade to latest Sysdig Image (9.5.0) (helm#20471) [stable/odoo] Update PostgreSQL dependency to latest major (helm#20467) [stable/redis] Add PrometheusRule. (helm#20388) ...
…0409) * [stable/prometheus-blackbox-exporter] add "allowIcmp" setting Signed-off-by: Alice Sawatzky <alice.sawatzky@farmersedge.ca> * [stable/prometheus-blackbox-exporter] minor version bump Signed-off-by: Alice Sawatzky <alice.sawatzky@farmersedge.ca> * [stable/prometheus-blackbox-exporter] fix NET_RAW capability Signed-off-by: Alice Sawatzky <alice.sawatzky@farmersedge.ca> * [stable/prometheus-blackbox-exporter] run as root if allowIcmp is set Signed-off-by: Alice Sawatzky <alice.sawatzky@farmersedge.ca> * [stable/prometheus-blackbox-exporter] document security implications of allowIcmp Signed-off-by: Alice Sawatzky <alice.sawatzky@farmersedge.ca> * [stable/prometheus-blackbox-exporter] add test values for allowIcmp Signed-off-by: Alice Sawatzky <alice.sawatzky@farmersedge.ca>
…ts into solr_plugin_volume * 'solr_plugin_volume' of github.com:MarcusSorealheis/charts: (611 commits) bump version to be compatible with plugins. bump version to be compatible with plugins. [stable/kube-state-metrics] Version bump to 1.9.4 (helm#20543) [stable/nginx-ingress] allow clusterIP values to be set empty (helm#20518) update grafana sidecar to 0.1.75 (helm#20538) [stable/mongodb] Release 7.8.2 updating components versions (helm#20537) [stable/testlink] add service annotations (helm#20531) Rr/strategy (helm#20533) [stable/superset] Update Maintainers List (helm#20493) [stable/nfs-server-provisioner] New nfs-provisioner with NFSv3 support (helm#19260) [stable/pgadmin] removed abundance curly bracket (helm#20530) Seq: use deployment strategy (helm#20526) [stable/moodle] Set MOODLE_SKIP_INSTALL environment variable via values.yaml config. (helm#20523) [stable/prometheus-redis-exporter] Update image for exporter (helm#19317) update alantis version (helm#20507) [stable/spring-cloud-data-flow] Update to new SCDF version 2.4.0 (helm#20517) [stable/prometheus-blackbox-exporter] add "allowIcmp" setting (helm#20409) Allow DNS egress to resolve hostnames (helm#20437) [stable/rabbitmq] Add PrometheusRule. (helm#20478) [stable/drupal] Release 6.2.4 updating components versions (helm#20491) ...
…0409) * [stable/prometheus-blackbox-exporter] add "allowIcmp" setting Signed-off-by: Alice Sawatzky <alice.sawatzky@farmersedge.ca> * [stable/prometheus-blackbox-exporter] minor version bump Signed-off-by: Alice Sawatzky <alice.sawatzky@farmersedge.ca> * [stable/prometheus-blackbox-exporter] fix NET_RAW capability Signed-off-by: Alice Sawatzky <alice.sawatzky@farmersedge.ca> * [stable/prometheus-blackbox-exporter] run as root if allowIcmp is set Signed-off-by: Alice Sawatzky <alice.sawatzky@farmersedge.ca> * [stable/prometheus-blackbox-exporter] document security implications of allowIcmp Signed-off-by: Alice Sawatzky <alice.sawatzky@farmersedge.ca> * [stable/prometheus-blackbox-exporter] add test values for allowIcmp Signed-off-by: Alice Sawatzky <alice.sawatzky@farmersedge.ca> Signed-off-by: Miguel Mingorance <miguel.mingorance@deliveryhero.com>
Signed-off-by: Alice Sawatzky alice.sawatzky@farmersedge.ca
@desaintmartin @gianrubio @rsotnychenko
What this PR does / why we need it:
Adds an option
allowIcmp
toprometheus-blcakbox-exporter
, which if enabled adds theCAP_NET_RAW
capability to the blackbox container, which is needed for ICMP probes to work.Checklist
[stable/mychartname]
)