mirror of
https://github.com/puppetmaster/typhoon.git
synced 2024-12-26 21:09:34 +01:00
159443bae7
* Adapt the coreos/prometheus-operator alerting rules for Typhoon, https://github.com/coreos/prometheus-operator/tree/master/contrib/kube-prometheus/manifests * Add controller manager and scheduler shim services to let prometheus discover them via service endpoints * Fix several alert rules to use service endpoint discovery * A few rules still don't do much, but they default to green
19 lines
371 B
YAML
19 lines
371 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: kube-scheduler
|
|
namespace: kube-system
|
|
annotations:
|
|
prometheus.io/scrape: 'true'
|
|
spec:
|
|
type: ClusterIP
|
|
# service is created to allow prometheus to scrape endpoints
|
|
clusterIP: None
|
|
selector:
|
|
k8s-app: kube-scheduler
|
|
ports:
|
|
- name: metrics
|
|
protocol: TCP
|
|
port: 10251
|
|
targetPort: 10251
|