-
Notifications
You must be signed in to change notification settings - Fork 0
/
service.yaml
43 lines (43 loc) · 816 Bytes
/
service.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
kind: Service
apiVersion: v1
metadata:
name: haproxy-ingress-controller-fluentd-metrics
namespace: default
labels:
app: haproxy-ingress
release: ha-ingress
type: metrics
# annotations:
# prometheus.io/port: '9101'
# prometheus.io/scrape: 'true'
spec:
ports:
- name: metrics
protocol: TCP
port: 24231
targetPort: 24231
selector:
app: haproxy-ingress
component: controller
release: ha-ingress
type: ClusterIP
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
k8s-app: ha-ingress
name: ha-ingress-stats
namespace: prometheus
spec:
endpoints:
- interval: 15s
port: metrics
namespaceSelector:
matchNames:
- default
selector:
matchLabels:
app: haproxy-ingress
type: metrics