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.
- Kubernetes >=
1.24.0
- Kustomize =
v3.5.3
- prometheus-operator
- kube-rbac-proxy image:
registry.sighup.io/fury/brancz/kube-rbac-proxy:v0.14.0
- kube-rbac-proxy repository: kube-rbac-proxy on Github
Fury distribution kube-proxy-metrics is deployed with the following configuration:
- Resource limits are
20m
for CPU and40Mi
for memory - Listens on port
18443
- Metrics are scraped by Prometheus with
15s
intervals - Requires
hostNetwork: true
andhostPID: true
- Runs as non-root user.
You can deploy kube-proxy-metrics by running the following command:
kustomize build | kubectl apply -f -
For license details please see LICENSE