mirror of
https://github.com/puppetmaster/typhoon.git
synced 2024-12-30 19:29:34 +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
19 lines
373 B
YAML
19 lines
373 B
YAML
# Allow Prometheus to scrape service endpoints
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: kube-controller-manager
|
|
namespace: kube-system
|
|
annotations:
|
|
prometheus.io/scrape: 'true'
|
|
spec:
|
|
type: ClusterIP
|
|
clusterIP: None
|
|
selector:
|
|
k8s-app: kube-controller-manager
|
|
ports:
|
|
- name: metrics
|
|
protocol: TCP
|
|
port: 10252
|
|
targetPort: 10252
|