mirror of
https://github.com/puppetmaster/typhoon.git
synced 2024-12-30 21:49:32 +01:00
10b977d54a
* kube-state-metrics service exists to facilitate prometheus discovery
20 lines
386 B
YAML
20 lines
386 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: kube-state-metrics
|
|
namespace: monitoring
|
|
annotations:
|
|
prometheus.io/scrape: 'true'
|
|
spec:
|
|
type: ClusterIP
|
|
# service is created to allow prometheus to scape endpoints
|
|
clusterIP: None
|
|
selector:
|
|
name: kube-state-metrics
|
|
phase: prod
|
|
ports:
|
|
- name: metrics
|
|
protocol: TCP
|
|
port: 80
|
|
targetPort: 8080
|