mirror of
https://github.com/puppetmaster/typhoon.git
synced 2024-12-25 18:49:33 +01:00
43e05b9131
* Configure kube-proxy --metrics-bind-address=0.0.0.0 (default 127.0.0.1) to serve metrics on 0.0.0.0:10249 * Add firewall rules to allow Prometheus (resides on a worker) to scrape kube-proxy service endpoints on controllers or workers * Add a clusterIP: None service for kube-proxy endpoint discovery
20 lines
379 B
YAML
20 lines
379 B
YAML
# Allow Prometheus to scrape service endpoints
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: kube-proxy
|
|
namespace: kube-system
|
|
annotations:
|
|
prometheus.io/scrape: 'true'
|
|
prometheus.io/port: '10249'
|
|
spec:
|
|
type: ClusterIP
|
|
clusterIP: None
|
|
selector:
|
|
k8s-app: kube-proxy
|
|
ports:
|
|
- name: metrics
|
|
protocol: TCP
|
|
port: 10249
|
|
targetPort: 10249
|