kube-proxy Metrics Exporter
kube-proxy is a critical piece of any Kubernetes cluster, therefore it is highly recommended to gather its metrics. Sometimes (especially in managed clusters) it is not possible to configure kube-proxy to be reachable by Prometheus for metrics scraping, this is why this package exists. Furthermore, this package also adds an authorization layer based on Kubernetes RBAC to the metrics exposed by kube-proxy.
Requirements
- Kubernetes >= 1.24.0
- Kustomize = v3.5.3
- prometheus-operator
Image repository and tag
- kube-rbac-proxy image: registry.sighup.io/fury/brancz/kube-rbac-proxy:v0.14.0
- kube-rbac-proxy repository: kube-rbac-proxy on Github
Configuration
Fury distribution kube-proxy-metrics is deployed with the following configuration:
- Resource limits are 20mfor CPU and40Mifor memory
- Listens on port 18443
- Metrics are scraped by Prometheus with 15sintervals
- Requires hostNetwork: trueandhostPID: true
- Runs as non-root user.
Deployment
You can deploy kube-proxy-metrics by running the following command:
kustomize build | kubectl apply -f -