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